Package gda.device.scannable
Interface VariableCollectionTimeDetector
- All Superinterfaces:
Configurable,Detector,Device,Findable,gda.observable.IObservable,Scannable
- All Known Implementing Classes:
HardwareTriggeredNXDetectorWithReadoutTimeAndVariableCollectionTime
VariableCollectionTimeDetectors can be prepared with a profile of collection times, such that each successive call to
collectData can result in a different collection time.
The index pointing to the 'current' collection time is reset to zero at Scannable.atScanLineStart() and incremented
after each Detector.collectData(). Detector.getCollectionTime() should read out this 'current' time.
Calls to Detector.setCollectionTime(double) should fail if a collection profile is set. Setting the profile to null
will remove the profile and Detector.getCollectionTime() should again return the time configured with Detector.setCollectionTime(double).
-
Field Summary
Fields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Method Summary
Modifier and TypeMethodDescriptiondouble[]Get the profile of collection times used for successive calls toDetector.collectData()or in a continuous scan.voidsetCollectionTimeProfile(double[] times) Set a profile of collection times used for successive calls toDetector.collectData()or in a continuous scan.Methods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Detector
collectData, createsOwnFiles, endCollection, getCollectionTime, getDataDimensions, getDescription, getDetectorID, getDetectorType, getFileStructure, getStatus, prepareForCollection, readout, 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, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, isBusy, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, toFormattedString
-
Method Details
-
setCollectionTimeProfile
Set a profile of collection times used for successive calls toDetector.collectData()or in a continuous scan.- Parameters:
times- times in seconds or null- Throws:
DeviceException
-
getCollectionTimeProfile
Get the profile of collection times used for successive calls toDetector.collectData()or in a continuous scan.- Throws:
DeviceException- times in seconds or null
-