Package xal.smf.impl
Class WireScanner.SmplConfig
java.lang.Object
xal.smf.scada.ScadaRecord
xal.smf.impl.profile.ParameterSet
xal.smf.impl.WireScanner.SmplConfig
- All Implemented Interfaces:
Cloneable
,DataListener
- Enclosing class:
- WireScanner
Data structure containing the sampling parameters for data acquisition.
- Since:
- Dec 16, 2009
- Author:
- Christopher K. Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class xal.smf.scada.ScadaRecord
ScadaRecord.IFieldDescriptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The digitizer sampling rate (in Hz)double
The sampling window [0.1,2] msecint
The amplifier signal gain {0, 1, 2}int
The timeout period for a no-beam exception [20,300] sec -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new, uninitializedDaqConfig
object.Create a newDaqConfig
object initialize with values fetched from the given device.SmplConfig
(DataAdaptor daptSrc) Create a newDaqConfig
object initialized from the given data source. -
Method Summary
Modifier and TypeMethodDescriptionstatic WireScanner.SmplConfig
acquire
(ProfileDevice ws) Convenience method for retrieving a new initialized data structure populated from the given device state.getGain()
Return the gain as aGAIN
enumeration.void
setGain
(ProfileDevice.GAIN gain) Set the gain as aGAIN
enumeration.Methods inherited from class xal.smf.impl.profile.ParameterSet
dataLabel
Methods inherited from class xal.smf.scada.ScadaRecord
clone, getFieldDescriptor, getFieldDescriptorMap, getFieldDescriptors, loadHardwareValues, setFieldFromPV, setHardwareValues, setPvFromField, toString, update, write
-
Field Details
-
sampleRate
@Field(type=int.class, ctrl=true, hndRb="DaqCfgScanRateRb", hndSet="DaqCfgScanRateSet") public int sampleRateThe digitizer sampling rate (in Hz) -
sampleWindow
@Field(type=double.class, ctrl=true, hndRb="DaqCfgWindowRb", hndSet="DaqCfgWindowSet") public double sampleWindowThe sampling window [0.1,2] msec -
signalGain
@Field(type=int.class, ctrl=true, hndRb="DaqCfgGainRb", hndSet="DaqCfgGainSet") public int signalGainThe amplifier signal gain {0, 1, 2} -
signalTimeout
@Field(type=int.class, ctrl=true, hndRb="DaqCfgTimeoutRb", hndSet="DaqCfgTimeoutSet") public int signalTimeoutThe timeout period for a no-beam exception [20,300] sec
-
-
Constructor Details
-
SmplConfig
public SmplConfig()Create a new, uninitializedDaqConfig
object.- Since:
- Dec 20, 2009
-
SmplConfig
Create a newDaqConfig
object initialized from the given data source.- Parameters:
daptSrc
- data source containing data structure fields- Since:
- Mar 17, 2010
-
SmplConfig
Create a newDaqConfig
object initialize with values fetched from the given device.- Parameters:
ws
- data acquisition device- Throws:
ConnectionException
- unable to connect to a parameter read back channelGetException
- general field initialization exception- Since:
- Dec 16, 2009
-
-
Method Details
-
acquire
public static WireScanner.SmplConfig acquire(ProfileDevice ws) throws ConnectionException, GetException Convenience method for retrieving a new initialized data structure populated from the given device state.- Parameters:
ws
- data acquisition device- Returns:
- New data populated structure
- Throws:
ConnectionException
- unable to connect parameter read back channelGetException
- general field initialization exception- Since:
- Dec 16, 2009
-
setGain
Set the gain as aGAIN
enumeration.- Parameters:
gain
- new gain value- Since:
- Dec 23, 2009
-
getGain
Return the gain as aGAIN
enumeration.- Returns:
- current gain value
- Since:
- Dec 23, 2009
-