Package gda.device.detector.xmap
Class XmapHardwareTriggeredCollectionStrategy
java.lang.Object
gda.device.detector.xmap.XmapSimpleAcquire
gda.device.detector.xmap.XmapHardwareTriggeredCollectionStrategy
- All Implemented Interfaces:
AsyncNXCollectionStrategy,CollectionStrategyBeanInterface,NXCollectionStrategyPlugin,NXPlugin,NXPluginBase,PositionInputStream<NXDetectorDataAppender>,org.springframework.beans.factory.InitializingBean
Drive the XIA Xmap card using hardware triggers in Constant Velocity scans.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidconfigureAcquireAndPeriodTimes(double collectionTime) Deprecated.voidprepareForCollection(double collectionTime, int numImages, ScanInformation scanInfo) voidread(int maxToRead) Return at least one element, but no more than maxToRead, waiting until able to do so.booleanMethods inherited from class gda.device.detector.xmap.XmapSimpleAcquire
afterPropertiesSet, completeCollection, completeLine, getAcquirePeriod, getAcquireTime, getName, getNumberImagesPerCollection, getStatus, getXmap, isGenerateCallbacks, prepareForCollection, setGenerateCallbacks, stop, waitWhileBusy, willRequireCallbacksMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.device.detector.nxdetector.NXCollectionStrategyPlugin
getFileStructure
-
Constructor Details
-
XmapHardwareTriggeredCollectionStrategy
- Throws:
DeviceException
-
-
Method Details
-
prepareForCollection
public void prepareForCollection(double collectionTime, int numImages, ScanInformation scanInfo) throws Exception - Specified by:
prepareForCollectionin interfaceNXCollectionStrategyPlugin- Overrides:
prepareForCollectionin classXmapSimpleAcquire- Throws:
Exception
-
prepareForLine
- Specified by:
prepareForLinein interfaceNXPluginBase- Overrides:
prepareForLinein classXmapSimpleAcquire- Throws:
Exception
-
collectData
- Specified by:
collectDatain interfaceNXCollectionStrategyPlugin- Overrides:
collectDatain classXmapSimpleAcquire- Throws:
Exception
-
requiresAsynchronousPlugins
public boolean requiresAsynchronousPlugins()- Returns:
- Return true if all other NXPlugins in the NXDetector must support asynchronous read , i.e. their
supportsAsynchronousRead method returns true.
For example in a trajectory scan the data for the plugins must be stored in some form of hardware cache that can be read out asynchronously to the scan.
-
atCommandFailure
- Specified by:
atCommandFailurein interfaceNXPluginBase- Overrides:
atCommandFailurein classXmapSimpleAcquire- Throws:
Exception
-
getInputStreamNames
-
getInputStreamFormats
-
read
public List<NXDetectorDataAppender> read(int maxToRead) throws NoSuchElementException, InterruptedException, DeviceException Description copied from interface:PositionInputStreamReturn at least one element, but no more than maxToRead, waiting until able to do so. The parameter maxToRead is there to protect the caller from potentially receiving too much data in call, not to meet the needs of the detector.- Parameters:
maxToRead- the maximum number of elements to read. Must be one or more.- Returns:
- at least one element from the head of the stream, oldest on the left
- Throws:
NoSuchElementException- if the stream will have nothing to returnInterruptedExceptionDeviceException
-
configureAcquireAndPeriodTimes
@Deprecated(since="GDA 8.26") public void configureAcquireAndPeriodTimes(double collectionTime) throws Exception Deprecated.- Throws:
Exception
-