public static class WireScanner.SmplConfig extends ParameterSet
ScadaRecord.IFieldDescriptor
Modifier and Type | Field and Description |
---|---|
int |
sampleRate
The digitizer sampling rate (in Hz)
|
double |
sampleWindow
The sampling window [0.1,2] msec
|
int |
signalGain
The amplifier signal gain {0, 1, 2}
|
int |
signalTimeout
The timeout period for a no-beam exception [20,300] sec
|
Constructor and Description |
---|
SmplConfig()
Create a new, uninitialized
DaqConfig object. |
SmplConfig(DataAdaptor daptSrc)
Create a new
DaqConfig object initialized
from the given data source. |
SmplConfig(ProfileDevice ws)
Create a new
DaqConfig object initialize
with values fetched from the given device. |
Modifier and Type | Method and Description |
---|---|
static WireScanner.SmplConfig |
acquire(ProfileDevice ws)
Convenience method for retrieving a new initialized data structure
populated from the given device state.
|
ProfileDevice.GAIN |
getGain()
Return the gain as a
GAIN
enumeration. |
void |
setGain(ProfileDevice.GAIN gain)
Set the gain as a
GAIN
enumeration. |
dataLabel
clone, getFieldDescriptor, getFieldDescriptorMap, getFieldDescriptors, loadHardwareValues, setFieldFromPV, setHardwareValues, setPvFromField, toString, update, write
@AScada.Field(type=int.class, ctrl=true, hndRb="DaqCfgScanRateRb", hndSet="DaqCfgScanRateSet") public int sampleRate
@AScada.Field(type=double.class, ctrl=true, hndRb="DaqCfgWindowRb", hndSet="DaqCfgWindowSet") public double sampleWindow
@AScada.Field(type=int.class, ctrl=true, hndRb="DaqCfgGainRb", hndSet="DaqCfgGainSet") public int signalGain
@AScada.Field(type=int.class, ctrl=true, hndRb="DaqCfgTimeoutRb", hndSet="DaqCfgTimeoutSet") public int signalTimeout
public SmplConfig()
DaqConfig
object.public SmplConfig(DataAdaptor daptSrc)
DaqConfig
object initialized
from the given data source.daptSrc
- data source containing data structure fieldspublic SmplConfig(ProfileDevice ws) throws ConnectionException, GetException
DaqConfig
object initialize
with values fetched from the given device.ws
- data acquisition deviceConnectionException
- unable to connect to a parameter read back channelGetException
- general field initialization exceptionpublic static WireScanner.SmplConfig acquire(ProfileDevice ws) throws ConnectionException, GetException
ws
- data acquisition deviceConnectionException
- unable to connect parameter read back channelGetException
- general field initialization exceptionpublic void setGain(ProfileDevice.GAIN gain)
GAIN
enumeration.gain
- new gain valuepublic ProfileDevice.GAIN getGain()
GAIN
enumeration.