Package gda.device.temperature
Class Marlow
- All Implemented Interfaces:
INeXusInfoWriteable,Device,Scannable,ScannableMotion,Temperature,ReplyChecker,Configurable,Findable,gda.observable.IObservable,AlarmListener
Class to control the Marlow SE50100 series controller. The Marlow expects even parity, 1 stop bit and 7 data bits
with a baud rate selected between 300 invalid input: '&' 9600 README This particular class has been reinstated for CD12. It uses
default values for serial as xml rewrite is in progress. Most new methods implemented in Eurotherm900 and
Eurotherm2000 have been removed and there is no facility for writing to a file.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbufferContainsReply(StringBuffer buffer) Implements methods from ReplyChecker classvoidclose()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.voiddoStart()This method needs re implementing, if necessaryvoiddoStop()Sets the stop flag to true.getAttribute(String name) Overrides the DeviceBase method to getAttribute.doubleGets the current temperature by asking the actual MarlowintgetGid()doubleGet the curent target temperature of the Marlow controllerintgetUid()voidhold()Hold at temperaturevoidRe-initialisation of values and states.voidrunRamp()Run the ramp sequence.protected voidsendRamp(int which) voidsetAttribute(String name, Object value) Overrides the DeviceBase method to setAttributes.voidsetGid(int gid) protected voidsetHWLowerTemp(double lowerTemp) protected voidsetHWUpperTemp(double upperTemp) voidsetSerialDeviceName(String serialDeviceName) voidsetUid(int uid) protected voidvoidStarts a temperature change towards previously set target temperature.voidExecutes when poll timer firesvoidIs this method used now.Methods inherited from class gda.device.temperature.TemperatureBase
addRamp, alarm, begin, cancelAlarm, clearRamps, end, getAccuracy, getCurrentPositionArray, getDataDimensions, getFileSuffix, getLowerTemp, getPolltime, getProbeNames, getRampRate, getUpperTemp, isAtTargetTemperature, isBusy, isRunning, rawAsynchronousMoveTo, rawGetPosition, readout, setAccuracy, setFileSuffix, setLowerTemp, setPolltime, setProbe, setProbeNames, setRampRate, setRamps, setTargetTemperature, setUpdatePeriod, setUpperTemp, start, startHoldTimer, startPoller, stop, stopPollerMethods inherited from class gda.device.scannable.ScannableMotionBase
a, addPositionValidator, ar, asynchronousMoveTo, checkPositionValid, checkPositionWithinGdaLimits, checkPositionWithinGdaLimits, completeInstantiation, externalToInternal, generateScannableLimitsReport, getAdditionalPositionValidators, 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, 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
getProtectionLevel, 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
-
Marlow
public Marlow()Constructor
-
-
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
- Parameters:
serialDeviceName-
-
getSerialDeviceName
- Returns:
- serialDeviceName
-
setUid
public void setUid(int uid) - Parameters:
uid-
-
getUid
public int getUid()- Returns:
- uid
-
setGid
public void setGid(int gid) - Parameters:
gid-
-
getGid
public int getGid()- Returns:
- gid
-
getCurrentTemperature
Gets the current temperature by asking the actual Marlow- Specified by:
getCurrentTemperaturein interfaceTemperature- Returns:
- currentTemp
- Throws:
DeviceException
-
getTargetTemperature
Get the curent target temperature of the Marlow controller- Specified by:
getTargetTemperaturein interfaceTemperature- Overrides:
getTargetTemperaturein classTemperatureBase- Returns:
- the target temperature
- Throws:
DeviceException
-
hold
Hold at temperature- Specified by:
holdin interfaceTemperature- Throws:
DeviceException
-
temperatureUpdate
public void temperatureUpdate()Executes when poll timer fires- Specified by:
temperatureUpdatein classTemperatureBase
-
bufferContainsReply
Implements methods from ReplyChecker class- Specified by:
bufferContainsReplyin interfaceReplyChecker- Parameters:
buffer- the reply from the Eurotherm- Returns:
- true if reply is corretly formatted
-
getAttribute
Overrides the DeviceBase method to getAttribute.- Specified by:
getAttributein interfaceDevice- Overrides:
getAttributein classScannableMotionBase- Parameters:
name- the name of the attribute to obtain- Returns:
- the attribute
- Throws:
DeviceException- See Also:
-
setAttribute
Overrides the DeviceBase method to setAttributes.- Specified by:
setAttributein interfaceDevice- Overrides:
setAttributein classDeviceBase- Parameters:
name- the name of the attribute to obtainvalue- the attribute to set- Throws:
DeviceException
-
doStart
This method needs re implementing, if necessary- Specified by:
doStartin classTemperatureBase- Throws:
DeviceException
-
doStop
Sets the stop flag to true. Should it set busy to false at this point?- Specified by:
doStopin classTemperatureBase- Throws:
DeviceException
-
sendRamp
- Specified by:
sendRampin classTemperatureBase- Throws:
DeviceException
-
startNextRamp
- Specified by:
startNextRampin classTemperatureBase- Throws:
DeviceException
-
startTowardsTarget
Starts a temperature change towards previously set target temperature. TargetTemp will have been set by the TemperatureBase method: setTargetTemperature(). This method sends the command to the hardware.- Specified by:
startTowardsTargetin classTemperatureBase- Throws:
DeviceException
-
waitForTemp
Is this method used now. If not - deprecate- Specified by:
waitForTempin interfaceTemperature- Overrides:
waitForTempin classTemperatureBase- Throws:
DeviceException
-
setHWLowerTemp
- Specified by:
setHWLowerTempin classTemperatureBase- Parameters:
lowerTemp-- Throws:
DeviceException
-
setHWUpperTemp
- Specified by:
setHWUpperTempin classTemperatureBase- Parameters:
upperTemp-- Throws:
DeviceException
-
runRamp
Description copied from class:TemperatureBaseRun the ramp sequence.- Specified by:
runRampin classTemperatureBase- Throws:
DeviceException
-