Package gda.device.detector.countertimer
Class TfgXspress2
- All Implemented Interfaces:
CounterTimer,Detector,Device,Scannable,Configurable,Findable,gda.observable.IObservable,Serializable
- Direct Known Subclasses:
CallableTfgXspress2,TfgXspress2NoCorrection,TfgXspress2Raw
Deprecated.
Adapter class for the gda.device.detector.xspress.Xspress2System so that it acts as a CounterTimer.
Used for returning scaler data from the Xspress2 as an array of doubles rather than a Nexus tree.
This has a slave mode for when its used in the same scan as another class which triggers the tfg.
- See Also:
-
Field Summary
FieldsFields inherited from class gda.device.detector.countertimer.TFGCounterTimer
isTFGv2Fields inherited from class gda.device.detector.countertimer.CounterTimerBase
slave, timerFields inherited from class gda.device.detector.DetectorBase
collectionTimeFields 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_UNAVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Tells the detector to begin to collect a set of data, then returns immediately.voidDeprecated.Default 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.booleanDeprecated.Returns a value which indicates whether the detector creates its own files.Deprecated.Deprecated.Deprecated.String[]Deprecated.Override scannablebase to work in scansString[]Deprecated.Override ScannableBase to work within scansString[]Deprecated.Returns an array of strings which are the format strings to use when pretty printing parts of the outputDeprecated.Override DetectorBase to work within scansDeprecated.Deprecated.Get the Xspress system namedouble[]readChannel(int startFrame, int frameCount, int channel) Deprecated.For a time framing counter-timer read out a specified channel, beginning from the specified start frame number using the requested frame count.double[]readFrame(int startChannel, int channelCount, int frame) Deprecated.For a time framing counter-timer read out a specified frame, beginning from the specified start channel number using the requested channel count.readout()Deprecated.Returns the latest data collected.voidrestart()Deprecated.For a time framing counter-timer this restarts framing, from the paused state.voidsetXspress(XspressDetector xspress) Deprecated.voidsetXspressSystemName(String xspressSystemName) Deprecated.Set the Xspress system namevoidstart()Deprecated.For a time framing counter-timer this initiates framing.Methods inherited from class gda.device.detector.countertimer.TFGCounterTimer
isTFGv2, setTFGv2Methods inherited from class gda.device.detector.countertimer.CounterTimerBase
addFrameSet, addFrameSet, clearFrameSets, getCurrentCycle, getCurrentFrame, getMaximumFrames, getStatus, getTimer, getTimerName, isSlave, loadFrameSets, setCycles, setSlave, setTimer, setTimerName, stopMethods inherited from class gda.device.detector.DetectorBase
asynchronousMoveTo, checkPositionValid, endCollection, getCollectionTime, getDataDimensions, isBusy, prepareForCollection, setCollectionTime, toFormattedStringMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, externalToInternal, getLevel, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, rawAsynchronousMoveTo, rawGetPosition, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, toString, validateScannable, valueUnavailableString, waitWhileBusy, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Detector
endCollection, getCollectionTime, getDataDimensions, getFileStructure, prepareForCollection, setCollectionTime, waitWhileBusyMethods inherited from interface gda.device.Device
close, 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, getLevel, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, isBusy, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, toFormattedString
-
Field Details
-
xspress
Deprecated.
-
-
Constructor Details
-
TfgXspress2
public TfgXspress2()Deprecated.
-
-
Method Details
-
configure
Deprecated.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 classCounterTimerBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
setXspressSystemName
Deprecated.Set the Xspress system name- Parameters:
xspressSystemName- the Xspress system name
-
getXspressSystemName
Deprecated.Get the Xspress system name- Returns:
- the Xspress system name.
-
getXspress
Deprecated.- Returns:
- Returns the xspress.
-
setXspress
Deprecated.- Parameters:
xspress- The xspress to set.
-
readout
Deprecated.Description copied from interface:DetectorReturns the latest data collected. The size of the Object returned must be consistent with the values returned by getDataDimensions and getExtraNames.If
LocalProperties.GDA_SCAN_CONCURRENTSCAN_READOUT_CONCURRENTLYis true then motors may be moved while the detector readouts. The value returned must not be effected by any concurrent motor or shutter movements. SeeDetector.waitWhileBusy()andConcurrentScan. Readout must block until the detector is ready to respond quickly toDetector.collectData()again.- Returns:
- the data collected
- Throws:
DeviceException
-
collectData
Deprecated.Description copied from interface:DetectorTells the detector to begin to collect a set of data, then returns immediately. Should cause the hardware to start collecting immediately: if there is any delay then detectors used in the same scan would collect over different times when beam conditions may differ.- Throws:
DeviceException
-
readChannel
Deprecated.Description copied from interface:CounterTimerFor a time framing counter-timer read out a specified channel, beginning from the specified start frame number using the requested frame count.- Parameters:
startFrame- starting frame number (1st=0)frameCount- number of frames to read the counter data out fromchannel- read this channel- Returns:
- array of requested readout counter-timer data
- Throws:
DeviceException
-
readFrame
Deprecated.Description copied from interface:CounterTimerFor a time framing counter-timer read out a specified frame, beginning from the specified start channel number using the requested channel count.- Parameters:
startChannel- starting channel number (1st=0)channelCount- number of channels to read the counter data out fromframe- read this frame- Returns:
- array of requested readout counter-timer data
- Throws:
DeviceException
-
restart
Deprecated.Description copied from interface:CounterTimerFor a time framing counter-timer this restarts framing, from the paused state.- Specified by:
restartin interfaceCounterTimer- Overrides:
restartin classCounterTimerBase- Throws:
DeviceException
-
start
Deprecated.Description copied from interface:CounterTimerFor a time framing counter-timer this initiates framing.- Specified by:
startin interfaceCounterTimer- Overrides:
startin classCounterTimerBase- Throws:
DeviceException
-
createsOwnFiles
Deprecated.Description copied from interface:DetectorReturns a value which indicates whether the detector creates its own files. If it does (return true) the readout() method returns the name of the latest file created as a string. If it does not (return false) the readout() method will return the data directly.- Returns:
- true if readout() returns filenames
- Throws:
DeviceException
-
getPosition
Deprecated.Override DetectorBase to work within scans- Specified by:
getPositionin interfaceScannable- Overrides:
getPositionin classDetectorBase- Returns:
- Current position with an element for each input and extra field. null if their are no fields.
- Throws:
DeviceException- See Also:
-
getInputNames
Deprecated.Override ScannableBase to work within scans- Specified by:
getInputNamesin interfaceScannable- Overrides:
getInputNamesin classScannableBase- Returns:
- array of the names of the elements of the object returned by getPosition
-
getExtraNames
Deprecated.Override scannablebase to work in scans- Specified by:
getExtraNamesin interfaceScannable- Overrides:
getExtraNamesin classScannableBase- Returns:
- array of names of the extra elements if the array returned by getPosition is larger than the array required by moveTo
-
getOutputFormat
Deprecated.Description copied from interface:ScannableReturns an array of strings which are the format strings to use when pretty printing parts of the output- Specified by:
getOutputFormatin interfaceScannable- Overrides:
getOutputFormatin classScannableBase- Returns:
- string array
-
getDescription
Deprecated.- Specified by:
getDescriptionin interfaceDetector- Overrides:
getDescriptionin classDetectorBase- Returns:
- A description of the detector.
- Throws:
DeviceException
-
getDetectorID
Deprecated.- Specified by:
getDetectorIDin interfaceDetector- Overrides:
getDetectorIDin classDetectorBase- Returns:
- A identifier for this detector.
- Throws:
DeviceException
-
getDetectorType
Deprecated.- Specified by:
getDetectorTypein interfaceDetector- Overrides:
getDetectorTypein classDetectorBase- Returns:
- The type of detector.
- Throws:
DeviceException
-