Package gda.device.temperature
Class Lauda
- All Implemented Interfaces:
INeXusInfoWriteable,Device,Scannable,ScannableMotion,Temperature,Configurable,Findable,gda.observable.IObservable,AlarmListener
Class to control the Lauda Compact Low-Temperature Thermostat.
-
Field Summary
Fields inherited from class gda.device.temperature.TemperatureBase
bufferedData, busy, count, currentRamp, currentTemp, dataFileWriter, dataWriter, fileSuffix, LONG_POLL_TIME, longPollTime, lowerTemp, POLL_TIME, pollTime, probeNameList, rampList, setPoint, SHORT_POLL_TIME, targetTemp, timeSinceStart, upperTempFields inherited from class gda.device.scannable.ScannableMotionBase
numberTries, toleranceFields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLEFields inherited from interface gda.device.ScannableMotion
FIRSTINPUTLIMITS -
Constructor Summary
ConstructorsConstructorDescriptionLauda()Constructs a Lauda bath, starting a new thread to monitor the current temperature. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close and unconfigure the device.voidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.protected voiddoStart()protected voiddoStop()doubleRead the temperature of the controlling device either internal bath external probe1 or external probe2.doubleRead the temperature of the Lauda bath.doubleRead the temperature of the external probe 1.doubleRead the temperature of the external probe 2.Get the name of the serial communication port on the host computer.doubleGet the current setpoint temperature.Get the status signaldoublegetTn()Get the control parameter Tn for the controller.doublegetTv()Get the control parameter Tv for the controller.doublegetXp()Get the control parameter Xp for the controller.voidhold()Stops running ramps or moving to temperature but holds the current temperaturevoidRe-initialisation of values and states.voidrunRamp()Run the ramp sequence.protected voidsendRamp(int which) Program a timed temperature ramp into the Lauda bath.voidInitiate the programmed temperature ramp in the Lauda bath.voidSwitch control variable to source external Pt 100 T1voidSwitch control variable to source external Pt 100 T2voidsetHWLowerTemp(double lowLimit) Set the switching point for undertemperature (usually set to the lower operating temperature of the Lauda bath thermostat, it must be in the range -35C and 200C.voidsetHWUpperTemp(double upperLimit) Set the upper operating temperature of the Lauda bath, it must be in the range -35C and 200C.voidSwitch control variable to source Ti (probe in the bath); control according to bath temperature (Default setting at power on)voidSwitch control variable to source external Pt 100 T1voidsetSerialDeviceName(String serialDeviceName) Set the name of the serial communication port on the host computer.voidsetTargetTemperature(double temp) Set the temperature of the Lauda bath in the range -20C to 150C.voidsetTnControl(double time) Set the control paramter Tn for the controllervoidsetTvControl(double time) Set the control paramter Tv for the controllervoidsetXpControl(double temp) Set the proportional band control paramter Xp for the controllerprotected voidvoidShould send hardware commands to start heating or cooling towards a single targetTempvoidMethods inherited from class gda.device.temperature.TemperatureBase
addRamp, alarm, begin, cancelAlarm, clearRamps, end, getAccuracy, getCurrentPositionArray, getDataDimensions, getFileSuffix, getLowerTemp, getPolltime, getProbeNames, getRampRate, getTargetTemperature, getUpperTemp, isAtTargetTemperature, isBusy, isRunning, rawAsynchronousMoveTo, rawGetPosition, readout, setAccuracy, setFileSuffix, setLowerTemp, setPollerUpdatePeriod, setPolltime, setProbeNames, setRampRate, setRamps, setUpperTemp, start, startHoldTimer, startPoller, stop, stopPoller, waitForTempMethods inherited from class gda.device.scannable.ScannableMotionBase
a, addPositionValidator, ar, asynchronousMoveTo, checkPositionValid, checkPositionWithinGdaLimits, checkPositionWithinGdaLimits, completeInstantiation, externalToInternal, generateScannableLimitsReport, getAdditionalPositionValidators, getAttribute, getFirstInputLimits, getInputLimits, getInputLimits, getLimitsComponent, getLowerGdaLimits, getNumberTries, getOffset, getScalingFactor, getTolerances, getUpperGdaLimits, internalToExternal, isAt, moveTo, r, rawIsBusy, removePositionValidator, setAdditionalPositionValidators, setLimitsComponent, setLowerGdaLimits, setLowerGdaLimits, setNumberTries, setOffset, setOffsetAndScalingComponent, setScalingFactor, setTolerance, setTolerances, setUpperGdaLimits, setUpperGdaLimits, toFormattedString, writeNeXusInformation, writeNeXusInformationLimitsMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, toString, validateScannable, valueUnavailableString, waitWhileBusy, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, deleteIObserver, deleteIObservers, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfiguredMethods inherited from interface gda.device.Device
getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
asynchronousMoveTo, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, toFormattedString, waitWhileBusy
-
Constructor Details
-
Lauda
public Lauda()Constructs a Lauda bath, starting a new thread to monitor the current temperature.
-
-
Method Details
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classTemperatureBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
reconfigure
Description copied from interface:ConfigurableRe-initialisation of values and states.Moved from Reconfigurable which has been deleted
- Specified by:
reconfigurein interfaceConfigurable- Overrides:
reconfigurein classConfigurableBase- Throws:
FactoryException
-
close
Description copied from interface:DeviceClose and unconfigure the device.- Specified by:
closein interfaceDevice- Overrides:
closein classDeviceBase- Throws:
DeviceException
-
setSerialDeviceName
Set the name of the serial communication port on the host computer.- Parameters:
serialDeviceName- the name of the serial port
-
getSerialDeviceName
Get the name of the serial communication port on the host computer.- Returns:
- the name of the serial port
-
doStart
- Specified by:
doStartin classTemperatureBase- Throws:
DeviceException
-
doStop
- Specified by:
doStopin classTemperatureBase- Throws:
DeviceException
-
getCurrentTemperature
Read the temperature of the Lauda bath.- Returns:
- the Lauda water bath temperature
- Throws:
DeviceExceptionNumberFormatException
-
setTargetTemperature
Set the temperature of the Lauda bath in the range -20C to 150C.- Specified by:
setTargetTemperaturein interfaceTemperature- Overrides:
setTargetTemperaturein classTemperatureBase- Parameters:
temp- required temparature of the Lauda water bath.- Throws:
DeviceException
-
getSetPoint
Get the current setpoint temperature.- Returns:
- the setpoint temperature
- Throws:
DeviceException
-
setHWLowerTemp
Set the switching point for undertemperature (usually set to the lower operating temperature of the Lauda bath thermostat, it must be in the range -35C and 200C.- Specified by:
setHWLowerTempin classTemperatureBase- Parameters:
lowLimit- the lower temperature limit in degrees C- Throws:
DeviceException
-
setHWUpperTemp
Set the upper operating temperature of the Lauda bath, it must be in the range -35C and 200C.- Specified by:
setHWUpperTempin classTemperatureBase- Parameters:
upperLimit- the upper temperature limit in degrees C- Throws:
DeviceException
-
setProbe
Switch control variable to source external Pt 100 T1- Specified by:
setProbein interfaceTemperature- Overrides:
setProbein classTemperatureBase- Parameters:
name- the probe name- Throws:
DeviceException
-
sendRamp
Program a timed temperature ramp into the Lauda bath. This does not initiate the program. Unrealistically short times will generate an error and the parameters will not be set.- Specified by:
sendRampin classTemperatureBase- Parameters:
which- is the required ramp to load- Throws:
DeviceException
-
sendStart
Initiate the programmed temperature ramp in the Lauda bath.- Throws:
DeviceException
-
setExtProbe1
Switch control variable to source external Pt 100 T1- Throws:
DeviceException
-
setExtProbe2
Switch control variable to source external Pt 100 T2- Throws:
DeviceException
-
setIntProbe
Switch control variable to source Ti (probe in the bath); control according to bath temperature (Default setting at power on)- Throws:
DeviceException
-
getBathTemp
Read the temperature of the controlling device either internal bath external probe1 or external probe2.- Returns:
- the control temperature
- Throws:
DeviceExceptionNumberFormatException
-
getExtProbe1
Read the temperature of the external probe 1.- Returns:
- the external probe 1 temperature
- Throws:
DeviceException
-
getExtProbe2
Read the temperature of the external probe 2.- Returns:
- the external probe 2 temperature
- Throws:
DeviceException
-
setXpControl
Set the proportional band control paramter Xp for the controller- Parameters:
temp- the Xp (degrees)- Throws:
DeviceException
-
setTnControl
Set the control paramter Tn for the controller- Parameters:
time- Control parameter Tn (secs)- Throws:
DeviceException
-
setTvControl
Set the control paramter Tv for the controller- Parameters:
time- the Tv (secs)- Throws:
DeviceException
-
getXp
Get the control parameter Xp for the controller.- Returns:
- the control parameter Xp
- Throws:
DeviceException
-
getTn
Get the control parameter Tn for the controller.- Returns:
- the control parameter Tn
- Throws:
DeviceException
-
getTv
Get the control parameter Tv for the controller.- Returns:
- the control parameter Tv
- Throws:
DeviceException
-
getStatusSignal
Get the status signal- Returns:
- the status
- Throws:
DeviceException
-
startNextRamp
- Specified by:
startNextRampin classTemperatureBase- Throws:
DeviceException
-
temperatureUpdate
public void temperatureUpdate()- Specified by:
temperatureUpdatein classTemperatureBase
-
startTowardsTarget
Description copied from class:TemperatureBaseShould send hardware commands to start heating or cooling towards a single targetTemp- Specified by:
startTowardsTargetin classTemperatureBase- Throws:
DeviceException
-
hold
Description copied from interface:TemperatureStops running ramps or moving to temperature but holds the current temperature- Throws:
DeviceException
-
runRamp
Description copied from class:TemperatureBaseRun the ramp sequence.- Specified by:
runRampin classTemperatureBase- Throws:
DeviceException
-