Package uk.ac.gda.server.ncd.subdetector
Class NcdEpicsTetramm
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
uk.ac.gda.server.ncd.subdetector.NcdEpicsTetramm
- All Implemented Interfaces:
Configurable,Findable,NcdTetrammController
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumNested classes/interfaces inherited from interface uk.ac.gda.server.ncd.subdetector.tetramm.NcdTetrammController
NcdTetrammController.TriggerState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault 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.voidStop the file writerdoubleGet the total averaging time for each frameintdoubleintGet latest file pathintintintGet the number of samples that were averaged to provide the last readingintReturn the number of values to read out per triggerGet the port name of the driver plugin.intGet the number of samples that are averaged for each readingdoubleGet the sample time for each valueGet the trigger state of the detectorintGet the number of values that are averaged to provide each readingvoidSet all the non scan settings to where they need to be before a scanbooleanGet the acquire state of the detectorbooleanbooleanGet state of file writervoidreset()Reset options to how they were before the scan startedvoidsetAcquire(boolean state) Start or stop the detector acquiringvoidsetAveragingTime(double time) Set the time to average values over for each framevoidvoidsetBaseSampleRate(int baseSampleRate) voidsetCollectionGeometry(NcdEpicsTetramm.Geometry collectionGeometry) voidsetCollectionRange(NcdEpicsTetramm.Range collectionRange) voidsetCollectionResolution(NcdEpicsTetramm.Resolution collectionResolution) voidsetDimensions(int framesPerPoint, int[] dimensions) Set the scan dimensions including the per point frame countvoidsetFilePath(String directory, String name) Set the directory and file name for the filewritervoidsetFileWriter(NDFileHDF5 fileWriter) voidvoidsetIdleAquire(boolean initialAquireState) voidsetIdleAveragingTime(double idleAveragingTime) voidsetIdleTriggerState(NcdTetrammController.TriggerState initialTriggerState) voidsetIdleValuesPerReading(int idleValuesPerReading) voidsetMaximumReadingsPerFrame(int maximumReadingsPerFrame) voidsetMinimumValuesPerReading(int minimumValuesPerReading) voidsetNumberOfChannels(int channelCount) Set the number of channels to recordvoidsetRange(NcdEpicsTetramm.Range range) voidsetRecording(boolean state) Start or stop the file writer collectingvoidvoidSet the trigger statevoidsetValuesPerReading(int values) Set the values that are averaged to generate each readingvoidstart()Put the detector in to acquire modevoidstop()Stop the detector acquiringMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
Constructor Details
-
NcdEpicsTetramm
public NcdEpicsTetramm()
-
-
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 classConfigurableBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
setAcquire
Description copied from interface:NcdTetrammControllerStart or stop the detector acquiring- Specified by:
setAcquirein interfaceNcdTetrammController- Throws:
DeviceException
-
stop
Stop the detector acquiring- Throws:
IOException
-
start
Put the detector in to acquire mode- Throws:
IOException
-
getNumberOfChannels
Description copied from interface:NcdTetrammControllerReturn the number of values to read out per trigger- Specified by:
getNumberOfChannelsin interfaceNcdTetrammController- Throws:
DeviceException
-
endCollection
Stop the file writer- Throws:
DeviceException
-
initialise
Description copied from interface:NcdTetrammControllerSet all the non scan settings to where they need to be before a scan- Specified by:
initialisein interfaceNcdTetrammController- Throws:
DeviceException
-
reset
Description copied from interface:NcdTetrammControllerReset options to how they were before the scan started- Specified by:
resetin interfaceNcdTetrammController- Throws:
DeviceException
-
getValuesPerReading
Description copied from interface:NcdTetrammControllerGet the number of values that are averaged to provide each reading- Specified by:
getValuesPerReadingin interfaceNcdTetrammController- Throws:
DeviceException
-
setValuesPerReading
Description copied from interface:NcdTetrammControllerSet the values that are averaged to generate each reading- Specified by:
setValuesPerReadingin interfaceNcdTetrammController- Throws:
DeviceException
-
getAveragingTime
Description copied from interface:NcdTetrammControllerGet the total averaging time for each frame- Specified by:
getAveragingTimein interfaceNcdTetrammController- Throws:
DeviceException
-
setAveragingTime
Description copied from interface:NcdTetrammControllerSet the time to average values over for each frame- Specified by:
setAveragingTimein interfaceNcdTetrammController- Throws:
DeviceException
-
getSampleTime
Description copied from interface:NcdTetrammControllerGet the sample time for each value- Specified by:
getSampleTimein interfaceNcdTetrammController- Throws:
DeviceException
-
getSamplesToAverage
Description copied from interface:NcdTetrammControllerGet the number of samples that are averaged for each reading- Specified by:
getSamplesToAveragein interfaceNcdTetrammController- Throws:
DeviceException
-
getNumberOfAveragedSamples
Description copied from interface:NcdTetrammControllerGet the number of samples that were averaged to provide the last reading- Specified by:
getNumberOfAveragedSamplesin interfaceNcdTetrammController- Throws:
DeviceException
-
isAcquiring
Description copied from interface:NcdTetrammControllerGet the acquire state of the detector- Specified by:
isAcquiringin interfaceNcdTetrammController- Throws:
DeviceException
-
setNumberOfChannels
Description copied from interface:NcdTetrammControllerSet the number of channels to record- Specified by:
setNumberOfChannelsin interfaceNcdTetrammController- Throws:
DeviceException
-
setTriggerState
Description copied from interface:NcdTetrammControllerSet the trigger state- Specified by:
setTriggerStatein interfaceNcdTetrammController- Throws:
DeviceException
-
getTriggerState
Description copied from interface:NcdTetrammControllerGet the trigger state of the detector- Specified by:
getTriggerStatein interfaceNcdTetrammController- Throws:
DeviceException
-
setResolution
- Throws:
DeviceException
-
setRange
- Throws:
DeviceException
-
setGeometry
- Throws:
DeviceException
-
setFilePath
Description copied from interface:NcdTetrammControllerSet the directory and file name for the filewriter- Specified by:
setFilePathin interfaceNcdTetrammController- Throws:
DeviceException
-
getLastFilePath
Description copied from interface:NcdTetrammControllerGet latest file path- Specified by:
getLastFilePathin interfaceNcdTetrammController- Throws:
DeviceException
-
setDimensions
Description copied from interface:NcdTetrammControllerSet the scan dimensions including the per point frame count- Specified by:
setDimensionsin interfaceNcdTetrammController- Throws:
DeviceException
-
setRecording
Description copied from interface:NcdTetrammControllerStart or stop the file writer collecting- Specified by:
setRecordingin interfaceNcdTetrammController- Throws:
DeviceException
-
isRecording
Description copied from interface:NcdTetrammControllerGet state of file writer- Specified by:
isRecordingin interfaceNcdTetrammController- Throws:
DeviceException
-
getPortName
Get the port name of the driver plugin. This is the name other plugins need to set as arrayPortName for their data source- Throws:
DeviceException
-
getBasePv
-
setBasePv
-
getFileWriter
-
setFileWriter
-
getIdleTriggerState
-
setIdleTriggerState
-
isIdleAquire
public boolean isIdleAquire() -
setIdleAquire
public void setIdleAquire(boolean initialAquireState) -
getIdleAveragingTime
public double getIdleAveragingTime() -
setIdleAveragingTime
public void setIdleAveragingTime(double idleAveragingTime) -
getIdleValuesPerReading
public int getIdleValuesPerReading() -
setIdleValuesPerReading
public void setIdleValuesPerReading(int idleValuesPerReading) -
setCollectionResolution
-
setCollectionGeometry
-
setCollectionRange
-
getMinimumValuesPerReading
public int getMinimumValuesPerReading() -
setMinimumValuesPerReading
public void setMinimumValuesPerReading(int minimumValuesPerReading) -
getMaximumReadingsPerFrame
public int getMaximumReadingsPerFrame() -
setMaximumReadingsPerFrame
public void setMaximumReadingsPerFrame(int maximumReadingsPerFrame) -
getBaseSampleRate
public int getBaseSampleRate() -
setBaseSampleRate
public void setBaseSampleRate(int baseSampleRate)
-