Class AreaDetectorRunnableDeviceWaitForArray
java.lang.Object
org.eclipse.scanning.api.AbstractNameable
org.eclipse.scanning.api.device.AbstractRunnableDevice<AreaDetectorRunnableDeviceModel>
uk.ac.diamond.daq.detectors.addetector.AbstractAreaDetectorRunnableDevice
uk.ac.diamond.daq.detectors.addetector.AreaDetectorRunnableDevice
uk.ac.diamond.daq.detectors.addetector.AreaDetectorRunnableDeviceWaitForArray
- All Implemented Interfaces:
INexusDevice<NXdetector>,IActivatable,IPausableDevice<AreaDetectorRunnableDeviceModel>,IResettableDevice,IRunnableDevice<AreaDetectorRunnableDeviceModel>,IRunnableEventDevice<AreaDetectorRunnableDeviceModel>,IWritableDetector<AreaDetectorRunnableDeviceModel>,IDeviceRoleActor,IConfigurable<AreaDetectorRunnableDeviceModel>,ILevel,IModelProvider<AreaDetectorRunnableDeviceModel>,INameable,IScanAttributeContainer,IValidator<AreaDetectorRunnableDeviceModel>
Version of AreaDetectorRunnableDevice which waits for the array counter to increment before reading data.
Written as a workaround for I14 Excalibur detector, where there is a delay between the Acquire finishing and the summary image becoming available.
-
Field Summary
Fields inherited from class uk.ac.diamond.daq.detectors.addetector.AreaDetectorRunnableDevice
adDetectorFields inherited from class org.eclipse.scanning.api.device.AbstractRunnableDevice
connectorService, model, runnableDeviceService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBlocking call to execute the scan.voidsetTimeout(long timeout) voidsetWriteDelay(int writeDelay) booleanFor GDA9 detectors, returns a boolean for the readout completed, true for complete, false for error.Methods inherited from class uk.ac.diamond.daq.detectors.addetector.AreaDetectorRunnableDevice
configure, configureAreaDetector, getNexusProvider, scanAbort, scanEnd, scanFault, scanStartMethods inherited from class uk.ac.diamond.daq.detectors.addetector.AbstractAreaDetectorRunnableDevice
levelEnd, levelStart, pointEnd, pointStart, postConfigure, preConfigure, scanFinally, scanPaused, scanResumed, writeCompleteMethods inherited from class org.eclipse.scanning.api.device.AbstractRunnableDevice
abort, addRunListener, disable, fireRunPerformed, fireRunWillPerform, fireStateChanged, fireWritePerformed, fireWriteWillPerform, getConfigureTime, getConnectorService, getDeviceHealth, getDeviceInformation, getDeviceInformation, getDeviceState, getLevel, getModel, getPublisher, getRole, getRunnableDeviceService, getScanAttribute, getScanAttributeNames, getScanId, getSupportedScanModes, isActivated, isAlive, isDeviceBusy, pause, register, removeRunListener, reset, resume, seek, setActivated, setAlive, setBusy, setConfigureTime, setConnectorService, setDeviceInformation, setDeviceState, setLevel, setModel, setPublisher, setRole, setRunnableDeviceService, setScanAttribute, setScanId, setSupportedScanMode, setSupportedScanModes, setSupportedScanModes, toString, validateMethods inherited from class org.eclipse.scanning.api.AbstractNameable
equals, getName, hashCode, setNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.scanning.api.device.models.IDeviceRoleActor
getRole, getSupportedScanModes, setRoleMethods inherited from interface org.eclipse.scanning.api.IModelProvider
setModel, updateModelMethods inherited from interface org.eclipse.dawnsci.nexus.INexusDevice
getCustomNexusModification, getName, getNexusProviders, registerMethods inherited from interface org.eclipse.scanning.api.device.IPausableDevice
pause, resume, seekMethods inherited from interface org.eclipse.scanning.api.device.IResettableDevice
resetMethods inherited from interface org.eclipse.scanning.api.device.IRunnableDevice
abort, disable, getDeviceHealth, getDeviceState, getModel, isAlive, isDeviceBusy, latch, latch, run, setAlive, start, throwFirstRunExceptionMethods inherited from interface org.eclipse.scanning.api.device.IRunnableEventDevice
addRunListener, fireRunPerformed, fireRunWillPerform, fireWritePerformed, fireWriteWillPerform, removeRunListenerMethods inherited from interface org.eclipse.scanning.api.IValidator
setService, validate
-
Constructor Details
-
AreaDetectorRunnableDeviceWaitForArray
public AreaDetectorRunnableDeviceWaitForArray()
-
-
Method Details
-
run
Description copied from interface:IRunnableDeviceBlocking call to execute the scan. The position specified may be null.- Specified by:
runin interfaceIRunnableDevice<AreaDetectorRunnableDeviceModel>- Overrides:
runin classAreaDetectorRunnableDevice- Throws:
ScanningExceptionInterruptedException
-
write
Description copied from interface:IWritableDetectorFor GDA9 detectors, returns a boolean for the readout completed, true for complete, false for error. Generally detectors running in GDA9 will be IDetector. For GDA8 detectors, the readout will be overridden.- Specified by:
writein interfaceIWritableDetector<AreaDetectorRunnableDeviceModel>- Overrides:
writein classAreaDetectorRunnableDevice- Returns:
- true for a successful readout. If false the events will not be fired and the scan will continue.
- Throws:
ScanningException
-
setWriteDelay
public void setWriteDelay(int writeDelay) -
setTimeout
public void setTimeout(long timeout)
-