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 TypeFieldDescriptionintThe digitizer sampling rate (in Hz)doubleThe sampling window [0.1,2] msecintThe amplifier signal gain {0, 1, 2}intThe timeout period for a no-beam exception [20,300] sec -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new, uninitializedDaqConfigobject.Create a newDaqConfigobject initialize with values fetched from the given device.SmplConfig(DataAdaptor daptSrc) Create a newDaqConfigobject initialized from the given data source. -
Method Summary
Modifier and TypeMethodDescriptionstatic WireScanner.SmplConfigacquire(ProfileDevice ws) Convenience method for retrieving a new initialized data structure populated from the given device state.getGain()Return the gain as aGAINenumeration.voidsetGain(ProfileDevice.GAIN gain) Set the gain as aGAINenumeration.Methods inherited from class xal.smf.impl.profile.ParameterSet
dataLabelMethods 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, uninitializedDaqConfigobject.- Since:
- Dec 20, 2009
-
SmplConfig
Create a newDaqConfigobject initialized from the given data source.- Parameters:
daptSrc- data source containing data structure fields- Since:
- Mar 17, 2010
-
SmplConfig
Create a newDaqConfigobject 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 aGAINenumeration.- Parameters:
gain- new gain value- Since:
- Dec 23, 2009
-
getGain
Return the gain as aGAINenumeration.- Returns:
- current gain value
- Since:
- Dec 23, 2009
-