Package uk.ac.gda.beans.xspress
Interface XspressDetector
- All Superinterfaces:
Configurable,Detector,Device,Findable,gda.observable.IObservable,Scannable
- All Known Subinterfaces:
XspressFluorescenceDetector
- All Known Implementing Classes:
Xspress2Detector,XspressSystem
Xspress systems must implement this to enable CORBA use
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringreadoutMode option - when this used Xspress will not use ROIs but return hardware scalers and full MCAstatic final StringreadoutMode option - when this used Xspress will not return data from ROIs and not use hardware scalersstatic final StringreadoutMode option - when this used Xspress will not use ROIs but return hardware scalers onlyFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the xspress system memoryget the current channel label list;getDetector(int which) Get the detector informationint[][][]getMCData(int time) Deprecated.intGet number of detectorsintint[]Gets the raw hardware scaler values from the first frame of memory.voidloadAndInitializeDetectors(String string) Create and initialize detectors specified in a file.Read out corrected scaler datavoidsaveDetectors(String filename) Save detector information to a filevoidsetDeadtimeCalculationEnergy(Double energy) The energy to use when calculating the energy-dependent deadtime correction factors.voidsetDetectorWindow(int which, int start, int end) Set the channel range window for a particular detectorvoidsetReadoutMode(String readoutMode) Sets the type of data which will be collected from the detector and returned by the readout and readoutCorrectData methods.voidsetResGrade(String grade) voidstart()Enable the xspress system for data collectionMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Detector
collectData, createsOwnFiles, endCollection, getCollectionTime, getDataDimensions, getDescription, getDetectorID, getDetectorType, getFileStructure, getStatus, prepareForCollection, readout, 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
-
Field Details
-
READOUT_SCALERONLY
readoutMode option - when this used Xspress will not use ROIs but return hardware scalers only- See Also:
-
READOUT_MCA
readoutMode option - when this used Xspress will not use ROIs but return hardware scalers and full MCA- See Also:
-
READOUT_ROIS
readoutMode option - when this used Xspress will not return data from ROIs and not use hardware scalers- See Also:
-
-
Method Details
-
start
Enable the xspress system for data collection- Throws:
DeviceException
-
clear
Clear the xspress system memory- Throws:
DeviceException
-
getNumberOfDetectors
Get number of detectors- Returns:
- the number of detectors
- Throws:
DeviceException
-
getMCData
Deprecated.Get multi-channel data for all elements- Parameters:
time- the time to count for (mS)- Returns:
- an array of readings from channels
- Throws:
DeviceException
-
getRawScalerData
Gets the raw hardware scaler values from the first frame of memory. This does not trigger any data collection. This for monitoring the Xspress status.Will return an int array of size 4 * number of detectors (elements).
- Returns:
- int[] 4 values for each element in order: total number of events, TFG reset counts, in window events,TFG clock counts
- Throws:
DeviceException
-
setDetectorWindow
Set the channel range window for a particular detector- Parameters:
which- the detector numberstart- the start channel numberend- the end channel number- Throws:
DeviceException
-
getDetector
Get the detector information- Parameters:
which- the detector number to get information from- Returns:
- detector information as a Detector object
- Throws:
DeviceException
-
saveDetectors
Save detector information to a file- Parameters:
filename- the file to save detector information to- Throws:
DeviceException
-
loadAndInitializeDetectors
Create and initialize detectors specified in a file.- Parameters:
string- the file to read detector information from- Throws:
DeviceExceptionException
-
readoutScalerData
Read out corrected scaler data- Returns:
- the data as an object
- Throws:
DeviceException
-
getChannelLabels
get the current channel label list;- Returns:
- the channel labels
-
getNumberofGrades
int getNumberofGrades()- Returns:
- the number of resolution bins
-
getResGrade
- Returns:
- the res grade
- Throws:
DeviceException
-
setResGrade
- Parameters:
grade-- Throws:
DeviceException
-
getReadoutMode
- Returns:
- the readoutMode
- Throws:
DeviceException
-
setReadoutMode
Sets the type of data which will be collected from the detector and returned by the readout and readoutCorrectData methods.- Parameters:
readoutMode-- Throws:
DeviceException
-
setDeadtimeCalculationEnergy
The energy to use when calculating the energy-dependent deadtime correction factors. This value is used internally and affects the values returned by the readout and readoutScalerData methods. This will not affect the results of the getRawScalerData method.It is recommended that the energy used in EXAFS experiments, for example, is the edge energy. It should be near the peak counts in the spectrum being studied.
If the value null or 0.0 is entered then the deadtime calculation used will not be energy dependent.
- Parameters:
energy-- Throws:
DeviceException
-
getDeadtimeCalculationEnergy
- Returns:
- Double - the energy used in energy-dependent deadtime calculations.
- Throws:
DeviceException
-