Package gda.device.detector.xmap.edxd
Class EDXDControllerQMap
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.device.detector.DetectorBase
gda.device.detector.xmap.edxd.EDXDController
gda.device.detector.xmap.edxd.EDXDControllerQMap
- All Implemented Interfaces:
Detector,NexusDetector,Device,Scannable,Configurable,Findable,gda.observable.IObservable,Serializable
Version of EDXDController including QMap data.
Originally developed for i12: see JEEP-239 or search Jira for "edxd1"
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class gda.device.detector.xmap.edxd.EDXDController
EDXDController.COLLECTION_MODES, EDXDController.NEXUS_FILE_MODE, EDXDController.PIXEL_ADVANCE_MODE, EDXDController.PRESET_TYPES -
Field Summary
Fields inherited from class gda.device.detector.xmap.edxd.EDXDController
ACQUIRE, ACQUIRING, collectDataException, GETDYNRANGE, GETDYNRANGE0, GETNBINS, GETPRESETTYPE, GETPRESETVALUE, numberOfElements, SCAACTIVATE, SCAELEMENTS, SETBINWIDTH, SETDYNRANGE, SETNBINS, SETPRESETTYPE, SETPRESETVALUE, SETRESUME, subDetectors, xmapFields inherited from class gda.device.detector.DetectorBase
collectionTimeFields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.january.dataset.Dataset[]acquire(double aquisitionTime) Acquires a single image for viewing onlyorg.eclipse.january.dataset.Dataset[]acquire(double aquisitionTime, boolean verbose) Acquires a single image for viewing onlyvoidClears the trace if there is a specific detector being tracedvoidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.voidvoidmonitorSpectra(int detectorNumber) Monitors a specific spectrareadout()Returns the latest data collected.voidStops monitoring the detectorMethods inherited from class gda.device.detector.xmap.edxd.EDXDController
activateROI, addElements, collectData, createsOwnFiles, deactivateROI, getAcquisitionTime, getBins, getData, getDescription, getDetectorID, getDetectorType, getEvents, getICR, getMaxAllowedROIs, getNumberOfElements, getOCR, getPresetType, getStatus, getSubDetector, getXmap, listSettings, loadSettings, reconfigure, saveCurrentSettings, saveCurrentSettings, setAquisitionTime, setBaseLength, setBaseThreshold, setBins, setBinWidth, setDynamicRange, setEnergyThreshold, setGapTime, setMaxWidth, setNumberOfElements, setPeakTime, setPreampGain, setPresetType, setResetDelay, setResume, setTriggerGapTime, setTriggerPeakTime, setTriggerThreshold, setup, setXmap, start, stop, verifyDataMethods inherited from class gda.device.detector.DetectorBase
asynchronousMoveTo, checkPositionValid, endCollection, getCollectionTime, getDataDimensions, getPosition, isBusy, prepareForCollection, setCollectionTime, toFormattedStringMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, externalToInternal, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, rawAsynchronousMoveTo, rawGetPosition, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, toString, validateScannable, valueUnavailableString, waitWhileBusy, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Detector
collectData, createsOwnFiles, endCollection, getCollectionTime, getDataDimensions, getDescription, getDetectorID, getDetectorType, getFileStructure, getStatus, prepareForCollection, 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
-
Constructor Details
-
EDXDControllerQMap
public EDXDControllerQMap()
-
-
Method Details
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classEDXDController- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
readout
Description copied from interface:DetectorReturns the latest data collected. The size of the Object returned must be consistent with the values returned by getDataDimensions and getExtraNames.If
LocalProperties.GDA_SCAN_CONCURRENTSCAN_READOUT_CONCURRENTLYis true then motors may be moved while the detector readouts. The value returned must not be effected by any concurrent motor or shutter movements. SeeDetector.waitWhileBusy()andConcurrentScan. Readout must block until the detector is ready to respond quickly toDetector.collectData()again.- Specified by:
readoutin interfaceDetector- Specified by:
readoutin interfaceNexusDetector- Overrides:
readoutin classEDXDController- Returns:
- the data collected
- Throws:
DeviceException
-
monitorAllSpectra
public void monitorAllSpectra() -
monitorSpectra
public void monitorSpectra(int detectorNumber) Monitors a specific spectra- Parameters:
detectorNumber-
-
stopMonitoring
public void stopMonitoring()Stops monitoring the detector -
clearTrace
public void clearTrace()Clears the trace if there is a specific detector being traced -
acquire
public org.eclipse.january.dataset.Dataset[] acquire(double aquisitionTime) throws DeviceException, InterruptedException Acquires a single image for viewing only- Parameters:
aquisitionTime- The time to collect for- Returns:
- The dataset of the aquired data, for additional processing if required.
- Throws:
DeviceExceptionInterruptedException
-
acquire
public org.eclipse.january.dataset.Dataset[] acquire(double aquisitionTime, boolean verbose) throws DeviceException, InterruptedException Acquires a single image for viewing only- Parameters:
aquisitionTime- The time to collect for- Returns:
- The dataset of the aquired data, for additional processing if required.
- Throws:
DeviceExceptionInterruptedException
-