Package jisa.devices.probestation
Class Pegasus
- java.lang.Object
-
- jisa.visa.VISADevice
-
- jisa.devices.probestation.Pegasus
-
- All Implemented Interfaces:
Instrument,ProbeStation,XYTranslationStage,XYZTranslationStage
public class Pegasus extends VISADevice implements ProbeStation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPegasus.Status-
Nested classes/interfaces inherited from interface jisa.devices.interfaces.Instrument
Instrument.AutoQuantity<S>, Instrument.OptionalQuantity<S>, Instrument.Parameter<S>, Instrument.Setter<S>, Instrument.TableQuantity
-
-
Field Summary
-
Fields inherited from class jisa.visa.VISADevice
C_IDN, CR_TERMINATOR, CRLF_TERMINATOR, DEFAULT_EOI, DEFAULT_EOS, DEFAULT_TIMEOUT, EOS_RETURN, LF_TERMINATOR
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckDefaultResponse(java.lang.String str)voidcontinMovement(java.lang.String axis, double velocityPercentage)Write z-axis fine liftstatic java.lang.StringgetDescription()doublegetGrossUpDistance()java.lang.StringgetIDN()Sends the standard identifications query to the device (*IDN?)booleangetLightOn()Returns if light is on or notdoublegetLockDistance()Returns the z axis locking distancedoublegetRotation()Returns rotation angle theta in degreesPegasus.StatusgetStatus()doublegetXPosition()Returns the x component of Position, in m.doublegetXYSpeed()Returns the speed to the desired value in TODO.doublegetYPosition()Returns the y component of Position, in m.doublegetZPosition()Returns the z component of Position, in m.doublegetZSpeed()Sets the speed to the desired value in TODO.voidgoLoadPosition()Moves stage to load positionvoidgoProbingZoneCentre()Moves stage to Probing Zone CentrebooleanisGrossLocked()Returns if Gross Up or notbooleanisLocked()Returns if in locked position (1) or not (0)protected doubleparsePosition(java.lang.String response)protected doubleparsePosition(java.lang.String response, double divisor)voidsetGrossUp(boolean locked)Set Gross Up (1) or Gross Down (0)voidsetGrossUpDistance(double position)Write z-axis gross liftvoidsetLightOn(boolean lightOn)Switches Light on (1) or off (2)voidsetLockDistance(double distance)Write z axis locking distancevoidsetLocked(boolean locked)Write: 1 = locked position (up).voidsetRotation(double theta)Sets the rotation angle theta to the desired value.voidsetXPosition(double xposition)Sets the x-position to the desired value.voidsetXYPosition(double xposition, double yposition)Sets the x- and y-position to the desired value.voidsetXYSpeed(double speed)Sets the speed to the desired value in TODO.voidsetYPosition(double yposition)Sets the y-position to the desired value.voidsetZPosition(double position)Sets the x-position to the desired value.voidsetZSpeed(double speed)Sets the speed to the desired value in TODO.protected java.lang.StringslowQuery(java.lang.String message, java.lang.Object... params)-
Methods inherited from class jisa.visa.VISADevice
addAutoRemove, checkLimit, checkLimit, clearBuffers, close, getAddress, getConnection, getName, manuallyClearReadBuffer, query, queryDouble, queryInt, read, read, readBytes, readDouble, readInt, setIOLimit, setReadBufferSize, setReadTerminator, setReadTerminator, setRetryCount, setTimeout, setWriteTerminator, write, writeBytes
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jisa.devices.interfaces.Instrument
close, getAddress, getConfigurationParameters, getConfigurationParameters, getLockObject, getName, setTimeout
-
-
-
-
Constructor Detail
-
Pegasus
public Pegasus(Address address) throws java.io.IOException, DeviceException
- Throws:
java.io.IOExceptionDeviceException
-
-
Method Detail
-
getDescription
public static java.lang.String getDescription()
-
slowQuery
protected java.lang.String slowQuery(java.lang.String message, java.lang.Object... params) throws java.io.IOException, DeviceException- Throws:
java.io.IOExceptionDeviceException
-
checkDefaultResponse
protected void checkDefaultResponse(java.lang.String str) throws DeviceException- Throws:
DeviceException
-
setXPosition
public void setXPosition(double xposition) throws java.io.IOException, DeviceExceptionDescription copied from interface:XYTranslationStageSets the x-position to the desired value.- Specified by:
setXPositionin interfaceXYTranslationStage- Parameters:
xposition- x-Position, in m- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
setYPosition
public void setYPosition(double yposition) throws java.io.IOException, DeviceExceptionDescription copied from interface:XYTranslationStageSets the y-position to the desired value.- Specified by:
setYPositionin interfaceXYTranslationStage- Parameters:
yposition- y-Position, in m- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
parsePosition
protected double parsePosition(java.lang.String response) throws java.io.IOException- Throws:
java.io.IOException
-
parsePosition
protected double parsePosition(java.lang.String response, double divisor) throws java.io.IOException- Throws:
java.io.IOException
-
getXPosition
public double getXPosition() throws java.io.IOExceptionDescription copied from interface:XYTranslationStageReturns the x component of Position, in m.- Specified by:
getXPositionin interfaceXYTranslationStage- Returns:
- x-Position, in m
- Throws:
java.io.IOException- Upon communications error
-
continMovement
public void continMovement(java.lang.String axis, double velocityPercentage) throws java.io.IOException, DeviceExceptionDescription copied from interface:ProbeStationWrite z-axis fine lift- Specified by:
continMovementin interfaceProbeStation- Parameters:
axis- : Movement axis (X,Y)- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
getYPosition
public double getYPosition() throws java.io.IOExceptionDescription copied from interface:XYTranslationStageReturns the y component of Position, in m.- Specified by:
getYPositionin interfaceXYTranslationStage- Returns:
- y-Position, in m
- Throws:
java.io.IOException- Upon communications error
-
setXYPosition
public void setXYPosition(double xposition, double yposition) throws java.io.IOException, DeviceExceptionDescription copied from interface:XYTranslationStageSets the x- and y-position to the desired value.- Specified by:
setXYPositionin interfaceXYTranslationStage- Parameters:
xposition- x-Position, in myposition- y-Position, in m- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
setZPosition
public void setZPosition(double position) throws java.io.IOException, DeviceExceptionDescription copied from interface:XYZTranslationStageSets the x-position to the desired value.- Specified by:
setZPositionin interfaceXYZTranslationStage- Parameters:
position- z-Position, in m- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
setGrossUpDistance
public void setGrossUpDistance(double position) throws java.io.IOException, DeviceExceptionDescription copied from interface:ProbeStationWrite z-axis gross lift- Specified by:
setGrossUpDistancein interfaceProbeStation- Parameters:
position- in m- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
setGrossUp
public void setGrossUp(boolean locked) throws java.io.IOException, DeviceExceptionDescription copied from interface:ProbeStationSet Gross Up (1) or Gross Down (0)- Specified by:
setGrossUpin interfaceProbeStation- Parameters:
locked- 1: up; 0: down- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
isGrossLocked
public boolean isGrossLocked() throws java.io.IOExceptionDescription copied from interface:ProbeStationReturns if Gross Up or not- Specified by:
isGrossLockedin interfaceProbeStation- Throws:
java.io.IOException- Upon communications error
-
getGrossUpDistance
public double getGrossUpDistance() throws java.io.IOException, DeviceException- Specified by:
getGrossUpDistancein interfaceProbeStation- Throws:
java.io.IOExceptionDeviceException
-
getZPosition
public double getZPosition() throws java.io.IOExceptionDescription copied from interface:XYZTranslationStageReturns the z component of Position, in m.- Specified by:
getZPositionin interfaceXYZTranslationStage- Returns:
- z-Position, in m
- Throws:
java.io.IOException- Upon communications error
-
setXYSpeed
public void setXYSpeed(double speed)
Description copied from interface:XYTranslationStageSets the speed to the desired value in TODO.- Specified by:
setXYSpeedin interfaceXYTranslationStage- Parameters:
speed- in TODO
-
getXYSpeed
public double getXYSpeed()
Description copied from interface:XYTranslationStageReturns the speed to the desired value in TODO.- Specified by:
getXYSpeedin interfaceXYTranslationStage
-
setZSpeed
public void setZSpeed(double speed)
Description copied from interface:XYZTranslationStageSets the speed to the desired value in TODO.- Specified by:
setZSpeedin interfaceXYZTranslationStage- Parameters:
speed- in TODO
-
getZSpeed
public double getZSpeed()
Description copied from interface:XYZTranslationStageSets the speed to the desired value in TODO.- Specified by:
getZSpeedin interfaceXYZTranslationStage
-
setRotation
public void setRotation(double theta) throws java.io.IOException, DeviceExceptionDescription copied from interface:XYTranslationStageSets the rotation angle theta to the desired value.- Specified by:
setRotationin interfaceXYTranslationStage- Parameters:
theta- rotation angle, in degrees- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
getRotation
public double getRotation() throws java.io.IOException, DeviceExceptionDescription copied from interface:XYTranslationStageReturns rotation angle theta in degrees- Specified by:
getRotationin interfaceXYTranslationStage- Returns:
- rotation angle, in degrees
- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
getIDN
public java.lang.String getIDN() throws java.io.IOExceptionDescription copied from class:VISADeviceSends the standard identifications query to the device (*IDN?)- Specified by:
getIDNin interfaceInstrument- Overrides:
getIDNin classVISADevice- Returns:
- The resposne of the device
- Throws:
java.io.IOException- Upon communications error
-
setLockDistance
public void setLockDistance(double distance) throws java.io.IOException, DeviceExceptionDescription copied from interface:ProbeStationWrite z axis locking distance- Specified by:
setLockDistancein interfaceProbeStation- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
getLockDistance
public double getLockDistance() throws java.io.IOExceptionDescription copied from interface:ProbeStationReturns the z axis locking distance- Specified by:
getLockDistancein interfaceProbeStation- Throws:
java.io.IOException- Upon communications error
-
getStatus
public Pegasus.Status getStatus() throws java.io.IOException
- Throws:
java.io.IOException
-
setLocked
public void setLocked(boolean locked) throws java.io.IOException, DeviceExceptionDescription copied from interface:ProbeStationWrite: 1 = locked position (up). 2 = not locked (down)- Specified by:
setLockedin interfaceProbeStation- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
isLocked
public boolean isLocked() throws java.io.IOExceptionDescription copied from interface:ProbeStationReturns if in locked position (1) or not (0)- Specified by:
isLockedin interfaceProbeStation- Throws:
java.io.IOException- Upon communications error
-
setLightOn
public void setLightOn(boolean lightOn) throws java.io.IOException, DeviceExceptionDescription copied from interface:ProbeStationSwitches Light on (1) or off (2)- Specified by:
setLightOnin interfaceProbeStation- Parameters:
lightOn- 1: light on; 0: light off- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
getLightOn
public boolean getLightOn() throws java.io.IOExceptionDescription copied from interface:ProbeStationReturns if light is on or not- Specified by:
getLightOnin interfaceProbeStation- Throws:
java.io.IOException- Upon communications error
-
goLoadPosition
public void goLoadPosition() throws java.io.IOException, DeviceExceptionDescription copied from interface:ProbeStationMoves stage to load position- Specified by:
goLoadPositionin interfaceProbeStation- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
goProbingZoneCentre
public void goProbingZoneCentre() throws java.io.IOException, DeviceExceptionDescription copied from interface:ProbeStationMoves stage to Probing Zone Centre- Specified by:
goProbingZoneCentrein interfaceProbeStation- Throws:
java.io.IOException- Upon communications errorDeviceException- Upon incompatibility with device
-
-