JSci.instruments.pi
Class PiezoServo
java.lang.Object
JSci.instruments.PositionControlAdapter
JSci.instruments.DummyPositionControl
JSci.instruments.pi.PiezoServo
- All Implemented Interfaces:
- Control, PositionControl
public class PiezoServo
- extends DummyPositionControl
A Phisik Instrumente LVPZT amplifier/servo position controller,
attached to the PC through a RS232 port.
Field Summary |
static java.lang.String |
E662
the E-662 controller |
static java.lang.String |
E665
the E-665 controller |
Constructor Summary |
PiezoServo(int n,
java.io.DataInput rfi,
java.io.DataOutput rfo,
java.lang.String type,
boolean inverted)
|
PiezoServo(int n,
java.io.RandomAccessFile raf,
java.lang.String type,
boolean inverted)
|
PiezoServo(int n,
java.lang.String type,
boolean inverted)
|
Method Summary |
protected void |
doSetPosition(double z)
|
double |
getActualPosition()
get the actual position of the device. |
java.lang.String |
idn()
|
static void |
main(java.lang.String[] args)
|
void |
sleep()
sleeps for the time needed to stabilize the position. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
E665
public static final java.lang.String E665
- the E-665 controller
- See Also:
- Constant Field Values
E662
public static final java.lang.String E662
- the E-662 controller
- See Also:
- Constant Field Values
PiezoServo
public PiezoServo(int n,
java.lang.String type,
boolean inverted)
throws java.io.IOException
- Parameters:
n
- the number of the serial port (0,1,...)type
- the type of controller (E665, E662), see E665 and E662.inverted
- the direction must be inverted?
- Throws:
java.io.IOException
PiezoServo
public PiezoServo(int n,
java.io.RandomAccessFile raf,
java.lang.String type,
boolean inverted)
throws java.io.IOException
- Parameters:
n
- the number of the serial port (0,1,...)raf
- the file connected to the porttype
- the type of controller (E665, E662), see E665 and E662.inverted
- the direction must be inverted?
- Throws:
java.io.IOException
PiezoServo
public PiezoServo(int n,
java.io.DataInput rfi,
java.io.DataOutput rfo,
java.lang.String type,
boolean inverted)
throws java.io.IOException
- Parameters:
n
- the number of the serial port (0,1,...)rfi
- the input file connected to the portrfo
- the output file connected to the porttype
- the type of controller (E665, E662), see E665 and E662.inverted
- the direction must be inverted?
- Throws:
java.io.IOException
idn
public java.lang.String idn()
- Returns:
- the identification string, as returned by IDN?
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
doSetPosition
protected final void doSetPosition(double z)
- Overrides:
doSetPosition
in class DummyPositionControl
getActualPosition
public double getActualPosition()
- Description copied from class:
PositionControlAdapter
- get the actual position of the device. Since the mechanical
device needs some time to reach the position, getPosition()
can be different from getActualPosition()
- Specified by:
getActualPosition
in interface PositionControl
- Overrides:
getActualPosition
in class DummyPositionControl
- Returns:
- the actual position
sleep
public void sleep()
- Description copied from class:
PositionControlAdapter
- sleeps for the time needed to stabilize the position.
- Specified by:
sleep
in interface PositionControl
- Overrides:
sleep
in class DummyPositionControl
main
public static void main(java.lang.String[] args)