Package org.eclipse.scanning.api.device
Interface IWritableDetector<T>
- Type Parameters:
T- Class of model required by detector to configure it.
- All Superinterfaces:
IConfigurable<T>,IDeviceRoleActor,ILevel,IModelProvider<T>,INameable,IPausableDevice<T>,IResettableDevice,IRunnableDevice<T>,IRunnableEventDevice<T>,IValidator<T>
- All Known Implementing Classes:
AbstractAreaDetectorRunnableDevice,AreaDetectorRunnableDevice,AreaDetectorRunnableDeviceProxy,AreaDetectorRunnableDeviceWaitForArray,AreaDetectorWritingFilesRunnableDevice,ConstantVelocityDevice,DarkImageDetector,ElectronAnalyserRunnableDevice,MandelbrotDetector,PosDetector,RandomIntDetector,RandomLineDevice,XmapRunnableDevice,XmapRunnableDeviceBase,XmapWritingFilesRunnableDevice,ZebraRunnableDevice
Anatomy of a CPU scan (non-malcolm)
Making GDA8 Detectors work with GDA9 (org.eclipse.scanning) requires usage of the
GDA8 IHardwareConnectionService. This service returns IReadableDetector for the class
gda.device.Detector and IScanner for gda.px.detector.Detector. In the later case
the model provides the file path and omegaStart required.
___________
| |
_| |___________ collectData() Tell detector to collect
___________
| |
___________| |_ readout() Tell detector to readout
________
| |
___________| |____ moveTo() Scannables move motors to new position
The readable detector is designed to be read out manually by the scanning
system. Malcolm detectors are not read out manually by the scanning but
because they implement IScanner, they can be configured and run during the
scanning.-
Field Summary
-
Method Summary
Methods inherited from interface org.eclipse.scanning.api.IConfigurable
configureMethods 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.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, 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
-
Method Details
-
write
For 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.- Returns:
- true for a successful readout. If false the events will not be fired and the scan will continue.
-