Package gda.device.detector.xmap
Class HardwareTriggerXmap
java.lang.Object
gda.device.detector.xmap.XmapSimpleAcquire
gda.device.detector.xmap.HardwareTriggerXmap
- All Implemented Interfaces:
AsyncNXCollectionStrategy,CollectionStrategyBeanInterface,NXCollectionStrategyPlugin,NXPlugin,NXPluginBase,PositionInputStream<NXDetectorDataAppender>,org.springframework.beans.factory.InitializingBean
Drive the XIA Xmap card using hardware triggers. Data is only available after
the scan has finished as it is written directly to an HDF5 file by the XMAP
card.
This plugin returns an index of each point instead.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureAcquireAndPeriodTimes(double collectionTime) Deprecated.voidprepareForCollection(double collectionTime, int numImages, ScanInformation scanInfo) read(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, atCommandFailure, collectData, completeCollection, completeLine, getAcquirePeriod, getAcquireTime, getName, getNumberImagesPerCollection, getStatus, getXmap, isGenerateCallbacks, prepareForCollection, prepareForLine, 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
-
Field Details
-
index
-
-
Constructor Details
-
HardwareTriggerXmap
- 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
-
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.
-
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
-