Package gda.device.detector.countertimer
Class TfgScalerWithLogValues
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.device.detector.DetectorBase
gda.device.detector.countertimer.CounterTimerBase
gda.device.detector.countertimer.TFGCounterTimer
gda.device.detector.countertimer.TfgScaler
gda.device.detector.countertimer.TfgScalerWithDarkCurrent
gda.device.detector.countertimer.TfgScalerWithLogValues
- All Implemented Interfaces:
CounterTimer,Detector,DarkCurrentDetector,Device,Scannable,Configurable,Findable,gda.observable.IObservable,Serializable
- Direct Known Subclasses:
BufferedScaler,CallableTfgScalerWithLogValues,PositionStreamingTfgScaler,TfgScalerWithFrames,TFGTriggeredScaler
A version of TfgScaler for Spectroscopy Ionchambers which assumes it has output channels (time),I0,It,Iref.
It has optional additional channels ln(I0/It) and ln(I0/Iref) It also reads the dark current at the scan start.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class gda.device.detector.countertimer.TfgScalerWithDarkCurrent
TfgScalerWithDarkCurrent.DarkCurrentBean -
Field Summary
FieldsFields inherited from class gda.device.detector.countertimer.TfgScaler
numChannelsToRead, scaler, timeChannelRequiredFields inherited from class gda.device.detector.countertimer.TFGCounterTimer
isTFGv2Fields inherited from class gda.device.detector.countertimer.CounterTimerBase
slave, timerFields 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 TypeMethodDescriptionvoidprotected double[]appendLogValues(double[] output) voidvoidintintintintReturns the total number of available counter-timer readout channels that will be returned by calls to readChans() For a time-framing device it is the number of channels per frame.booleanbooleanprotected double[]performCorrections(double[] output) double[]readFrame(int frame) For a time framing counter-timer, read out from channel 0 beginning from the specified start frame number using all the scaler dimensions.double[]readout()Returns the latest data collected.voidvoidSave the current output formats and extra names;voidsetI0ScalerChannel(int i0ScalerChannel) voidsetiRefScalerChannel(int iRefScalerChannel) voidsetItScalerChannel(int itScalerChannel) voidsetOutputLogValues(boolean outputLogValues) When set to true ln(I0/It) and ln(I0/Iref) will be added to the output columnsvoidsetScalerOutputConfig(List<ScalerOutputProcessor.OutputConfig> outputConfig) voidsetTimeChannelName(String name) voidsetUseCustomisedOutput(boolean useCustomisedOutput) Methods inherited from class gda.device.detector.countertimer.TfgScalerWithDarkCurrent
acquireDarkCurrent, adjustChannelForDarkCurrent, adjustForDarkCurrent, atScanEnd, atScanStart, getDarkCurrent, getDarkCurrentCollectionTime, getDarkCurrentResults, isDarkCurrentRequired, isUseReset, setDarkCurrent, setDarkCurrentCollectionTime, setDarkCurrentRequired, setUseResetMethods inherited from class gda.device.detector.countertimer.TfgScaler
addFrameSet, addFrameSet, atCommandFailure, atScanLineStart, clearFrameSets, collectData, configure, countAsync, createsOwnFiles, getAttribute, getDescription, getDetectorID, getDetectorType, getFirstDataChannel, getInputNames, getMinimumReadoutDelay, getNumChannelsToRead, getScaler, getScalerName, isTimeChannelRequired, readChannel, readChans, readFrame, readoutCurrentFrame, readoutFrames, setAttribute, setFirstDataChannel, setMinimumReadoutDelay, setNumChannelsToRead, setScaler, setScalerName, setTimeChannelRequired, start, stopMethods inherited from class gda.device.detector.countertimer.TFGCounterTimer
isTFGv2, setTFGv2Methods inherited from class gda.device.detector.countertimer.CounterTimerBase
getCurrentCycle, getCurrentFrame, getMaximumFrames, getStatus, getTimer, getTimerName, isSlave, loadFrameSets, restart, setCycles, setSlave, setTimer, setTimerNameMethods 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__, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanLineEnd, externalToInternal, getExtraNames, 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, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, 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
endCollection, getCollectionTime, getDataDimensions, getFileStructure, prepareForCollection, setCollectionTime, waitWhileBusyMethods inherited from interface gda.device.Device
close, getProtectionLevel, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
asynchronousMoveTo, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanLineEnd, checkPositionValid, getExtraNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, isBusy, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, toFormattedString
-
Field Details
-
LNI0IT_LABEL
- See Also:
-
LNITIREF_LABEL
- See Also:
-
-
Constructor Details
-
TfgScalerWithLogValues
public TfgScalerWithLogValues()
-
-
Method Details
-
isOutputLogValues
public boolean isOutputLogValues()- Returns:
- Returns the outputLogValues.
-
setOutputLogValues
public void setOutputLogValues(boolean outputLogValues) When set to true ln(I0/It) and ln(I0/Iref) will be added to the output columns- Parameters:
outputLogValues- The outputLogValues to set.
-
getTotalChans
Description copied from class:TfgScalerReturns the total number of available counter-timer readout channels that will be returned by calls to readChans() For a time-framing device it is the number of channels per frame. All counter-timers must fully implement this.- Overrides:
getTotalChansin classTfgScaler- Returns:
- total number of readout channels
- Throws:
DeviceException
-
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- Overrides:
readoutin classTfgScaler- Returns:
- the data collected
- Throws:
DeviceException- See Also:
-
performCorrections
- Throws:
DeviceException
-
readFrame
Description copied from class:TfgScalerFor a time framing counter-timer, read out from channel 0 beginning from the specified start frame number using all the scaler dimensions.- Overrides:
readFramein classTfgScaler- Parameters:
frame- read this frame- Returns:
- array of requested readout counter-timer data
- Throws:
DeviceException
-
appendLogValues
protected double[] appendLogValues(double[] output) -
getI0ScalerChannel
public int getI0ScalerChannel() -
setI0ScalerChannel
public void setI0ScalerChannel(int i0ScalerChannel) -
getItScalerChannel
public int getItScalerChannel() -
setItScalerChannel
public void setItScalerChannel(int itScalerChannel) -
getiRefScalerChannel
public int getiRefScalerChannel() -
setiRefScalerChannel
public void setiRefScalerChannel(int iRefScalerChannel) -
setUseCustomisedOutput
public void setUseCustomisedOutput(boolean useCustomisedOutput) - Parameters:
useCustomisedOutput- true - generate readout usingScalerOutputProcessor, false - use 'normal' readout. When setting from true to false the previous extraNames, outputformats are restored (if they have been previously set usingsaveExtraNamesFormats().
-
getUseCustomisedOutput
public boolean getUseCustomisedOutput() -
saveExtraNamesFormats
public void saveExtraNamesFormats()Save the current output formats and extra names; -
restoreExtraNamesFormats
public void restoreExtraNamesFormats() -
getScalerOutputConfig
-
setScalerOutputConfig
-
addScalerOutputConfig
-
clearScalerOutputConfig
public void clearScalerOutputConfig() -
configureScalerOutputProcessor
public void configureScalerOutputProcessor() -
getScalerOutputProcessor
-
setTimeChannelName
-
getTimeChannelName
-