|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--orthotweezers.OrthoTweezersControl
OrthoTweezersControl interfaces with all the hardware of the orthotweezer system, providing control of the stage, tweezers, strain gauges, etc. This class contains only the basic methods necessary to interface to the system. For more sophisticated manipulation routines, see OrthoTweezersTools which uses this class.
OrthoTweezersTools
Constructor Summary | |
OrthoTweezersControl()
Creates new OrthoTweezersControl. |
Method Summary | |
void |
calibrateStrainErrors()
This sets xArmStrainError, xTipStrainError, yArmStrainError and yTipStrain error by running a calibration algorithm. |
void |
calibrateXArmDeflection(double deflection)
This adjusts strainToDeflectionXArm so that the current reading of xArmStrain() will yeild the given deflection. |
void |
calibrateXTipDeflection(double deflection)
This adjusts strainToDeflectionXTip so that the current reading of xTipStrain() will yeild the given deflection. |
void |
calibrateXTipForce(double force)
This adjusts strainToForceXTip so that the current reading of xTipStrain() will yeild the given force. |
void |
calibrateYArmDeflection(double deflection)
This adjusts strainToDeflectionYArm so that the current reading of yArmStrain() will yeild the given deflection. |
void |
calibrateYTipDeflection(double deflection)
This adjusts strainToDeflectionYTip so that the current reading of yTipStrain() will yeild the given deflection. |
void |
calibrateYTipForce(double force)
This adjusts strainToForceYTip so that the current reading of yTipStrain() will yeild the given force. |
void |
getPreferences(Preferences preferences)
Set the relevant fields in the Preferences object, such as STAGE_X, with the values in this object. |
void |
moveProbeX(double position)
Move probe X to the position smoothly. |
void |
moveProbeY(double position)
Move probe Y to the position smoothly. |
void |
moveToXY(double x,
double y)
Move the stage to the x, y position, moving diagonally if necessary. |
void |
moveToZ(double z)
Move the stage to the z position. |
double |
probeXPosition()
Return the nomalized position of probe X in the range -1 to 1. |
double |
probeYPosition()
Return the nomalized position of probe Y in the range -1 to 1. |
void |
relay1Off()
Set the digital output for relay number 1 to 0. |
void |
relay1On()
Set the digital output for relay number 1 to 1. |
boolean |
relay1State()
Return true if relay number 1 is on, otherwise false. |
void |
reset()
Reset the orthotweezers system to its default state. |
void |
resetXArmStrain()
Assume that probe X is at the zero position and set strainOffsetXArm so that xArmStrain() will read zero. |
void |
resetXTipStrain()
Assume there is no force on the tip of probe X and set strainOffsetXTip so that xTipStrain() will read zero. |
void |
resetYArmStrain()
Assume that probe Y is at the zero position and set strainOffsetYArm so that yArmStrain() will read zero. |
void |
resetYTipStrain()
Assume there is no force on the tip of probe Y and set strainOffsetYTip so that yTipStrain() will read zero. |
void |
setFromPreferences(Preferences preferences)
Initialize control parameters, such as stageX, from the preferences. |
void |
setStageXYZ(double x,
double y,
double z)
Set the present position of the stage. |
double |
stageX()
Return the X position of the stage in millimeters. |
double |
stageY()
Return the Y position of the stage in millimeters. |
double |
stageZ()
Return the Z position of the stage in millimeters. |
double |
strainErrorXArm()
|
double |
strainErrorXTip()
|
double |
strainErrorYArm()
|
double |
strainErrorYTip()
|
double |
strainOffsetXArm()
Get the offset which is added to the probe X arm strain gauge reading. |
double |
strainOffsetXTip()
Get the offset which is added to the probe X tip strain gauge reading. |
double |
strainOffsetYArm()
Get the offset which is added to the probe Y arm strain gauge reading. |
double |
strainOffsetYTip()
Get the offset which is added to the probe Y tip strain gauge reading. |
double |
strainToDeflectionXArm()
Get the parameter to convert strain to deflection on the probe X arm. |
double |
strainToDeflectionXTip()
Get the parameter to convert strain to deflection on the probe X tip. |
double |
strainToDeflectionYArm()
Get the parameter to convert strain to deflection on the probe Y arm. |
double |
strainToDeflectionYTip()
Get the parameter to convert strain to deflection on the probe Y tip. |
double |
strainToForceXTip()
Get the parameter to convert strain to force on the probe X tip. |
double |
strainToForceYTip()
Get the parameter to convert strain to force on the probe Y tip. |
double |
xArmDeflection()
Get the deflection of the probe X arm. |
double |
xArmStrain()
Get the reading of the probe X arm strain gauge and add it to strainOffsetXArm(). |
void |
xStep(boolean direction)
Move X one step, updating _xSteps. |
double |
xTipDeflection()
Get the deflection of the probe X tip. |
double |
xTipForce()
Get the force on the probe X tip. |
double |
xTipStrain()
Get the reading of the probe X tip strain gauge and add it to strainOffsetXTip(). |
double |
yArmDeflection()
Get the deflection of the probe Y arm. |
double |
yArmStrain()
Get the reading of the probe Y arm strain gauge and add it to strainOffsetYArm(). |
void |
yStep(boolean direction)
Move Y one step, updating _ySteps. |
double |
yTipDeflection()
Get the deflection of the probe Y tip. |
double |
yTipForce()
Get the force on the probe Y tip. |
double |
yTipStrain()
Get the reading of the probe Y tip strain gauge and add it to strainOffsetYTip(). |
void |
zStep(boolean direction)
Move Z one step, updating _zSteps. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OrthoTweezersControl()
reset()
Method Detail |
public void setFromPreferences(Preferences preferences)
preferences
- the Preferences object which should already have
values loaded from the preferences filepublic void getPreferences(Preferences preferences)
preferences
- the Preferences object into which the control
parameters will be savedpublic void reset() throws CancelException
CancelException
- thrown by CancelThread.check()CancelThread
public void xStep(boolean direction)
direction
- true for increasing X, false for decreasingpublic void yStep(boolean direction)
direction
- true for increasing Y, false for decreasingpublic void moveProbeX(double position) throws CancelException
position
- normalized position in the range -1 to 1.
Values outside this range are clipped to this range.CancelException
- thrown by CancelThread.check()OrthoTweezersTools.seekXArmDeflection(double)
,
CancelThread
public void moveProbeY(double position) throws CancelException
position
- normalized position in the range -1 to 1.
Values outside this range are clipped to this range.CancelException
- thrown by CancelThread.check()OrthoTweezersTools.seekYArmDeflection(double)
,
CancelThread
public double probeXPosition()
public double probeYPosition()
public void zStep(boolean direction)
direction
- true for increasing Z, false for decreasingpublic double xArmStrain()
strainOffsetXArm()
public double yArmStrain()
strainOffsetYArm()
public double xTipStrain()
strainOffsetXTip()
public double yTipStrain()
strainOffsetYTip()
public double strainOffsetXArm()
xArmStrain()
public double strainOffsetYArm()
yArmStrain()
public double strainOffsetXTip()
xTipStrain()
public double strainOffsetYTip()
yTipStrain()
public double strainToDeflectionXArm()
public double strainToDeflectionXTip()
public double strainToDeflectionYArm()
public double strainToDeflectionYTip()
public double strainToForceXTip()
public double strainToForceYTip()
public double xArmDeflection()
public double xTipDeflection()
xTipStrain()
,
strainToDeflectionXTip()
,
strainToForceXTip()
public double yArmDeflection()
public double yTipDeflection()
yTipStrain()
,
strainToDeflectionYTip()
,
strainToForceYTip()
public double xTipForce()
xTipStrain()
,
strainToDeflectionXTip()
,
strainToForceXTip()
public double yTipForce()
yTipStrain()
,
strainToDeflectionYTip()
,
strainToForceYTip()
public void moveToXY(double x, double y) throws CancelException
x
- x coordinate to move to, in millimetersy
- y coordinate to move to, in millimetersCancelException
- thrown by CancelThread.check()
or if got an InterruptedException.CancelThread
public void moveToZ(double z) throws CancelException
z
- z coordinate to move to, in millimetersCancelException
- thrown by CancelThread.check()
or if got an InterruptedException.CancelThread
public double stageX()
public double stageY()
public double stageZ()
public void setStageXYZ(double x, double y, double z)
x
- the new stage X position in millimetersy
- the new stage Y position in millimetersz
- the new stage Z position in millimeterspublic void resetXTipStrain()
xTipStrain()
public void resetYTipStrain()
yTipStrain()
public void resetXArmStrain()
xArmStrain()
public void resetYArmStrain()
yArmStrain()
public void calibrateXArmDeflection(double deflection)
deflection
- the actual deflection in millimeters that probe X
arm is believed to be atresetXArmStrain()
public void calibrateYArmDeflection(double deflection)
deflection
- the actual deflection in millimeters that probe Y
arm is believed to be atresetYArmStrain()
public void calibrateXTipDeflection(double deflection)
deflection
- the actual deflection in millimeters that probe X
tip is believed to be atresetXTipStrain()
public void calibrateYTipDeflection(double deflection)
deflection
- the actual deflection in millimeters that probe Y
tip is believed to be atresetYTipStrain()
public void calibrateXTipForce(double force)
force
- the actual force in milli Newtons that probe X
tip is believed to be atresetXTipStrain()
public void calibrateYTipForce(double force)
force
- the actual force in milli Newtons that probe Y
tip is believed to be atresetYTipStrain()
public void calibrateStrainErrors() throws CancelException
CancelException
- thrown by CancelThread.check()CancelThread
public double strainErrorXArm()
public double strainErrorXTip()
public double strainErrorYArm()
public double strainErrorYTip()
public void relay1On()
relay1State()
public void relay1Off()
relay1State()
public boolean relay1State()
relay1On()
,
relay1Off()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |