JSci.instruments.pi
Class PiezoServo

java.lang.Object
  extended byJSci.instruments.PositionControlAdapter
      extended byJSci.instruments.DummyPositionControl
          extended byJSci.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
 
Fields inherited from class JSci.instruments.PositionControlAdapter
listenerList
 
Constructor Summary
PiezoServo(int n, java.lang.String type, boolean inverted)
           
 
Method Summary
 void dispose()
           
protected  void doSetPosition(double z)
           
 double getActualPosition()
          get the actual position of the device.
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 JSci.instruments.DummyPositionControl
getControlComponent, getMajorStep, getMaximum, getMinimum, getMinorStep, getPosition, getUnit, setPosition
 
Methods inherited from class JSci.instruments.PositionControlAdapter
addChangeListener, fireStateChanged, getChangeListeners, getListeners, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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?
Method Detail

toString

public java.lang.String toString()

doSetPosition

protected final void doSetPosition(double z)
Overrides:
doSetPosition in class DummyPositionControl

dispose

public void dispose()

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

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)