public static class WireScanner.TrgConfig extends ParameterSet
ScadaRecord.IFieldDescriptor
Modifier and Type | Field and Description |
---|---|
double |
delay
Time delay between beam-on event and actual DAQ start.
|
int |
event
Event code to trigger data acquisition - values 0,...,256
|
static ScadaFieldMap |
FLD_MAP
Map of field names to SCADA field Descriptors
|
Constructor and Description |
---|
TrgConfig()
Create a new, uninitialized
DaqConfig object. |
TrgConfig(DataAdaptor daptSrc)
Create a new
TrgConfig object initialized
from the given data source. |
TrgConfig(ProfileDevice ws)
Create a new
TrgConfig object initialize
with values fetched from the given device. |
Modifier and Type | Method and Description |
---|---|
static WireScanner.TrgConfig |
acquire(ProfileDevice ws)
Convenience method for retrieving a new initialized data structure
populated from the given device state.
|
ProfileDevice.TRGEVT |
getTrigEvent()
Returns the triggering event code taken from
the raw value field
event of this
data structure. |
void |
setTrigEvent(ProfileDevice.TRGEVT evt)
Sets the value of the
event field
using the appropriate TRGEVT enumeration
constant. |
dataLabel
clone, getFieldDescriptor, getFieldDescriptorMap, getFieldDescriptors, loadHardwareValues, setFieldFromPV, setHardwareValues, setPvFromField, toString, update, write
public static final ScadaFieldMap FLD_MAP
@AScada.Field(type=double.class, ctrl=true, hndRb="TrgCfgDelayRb", hndSet="TrgCfgDelaySet") public double delay
@AScada.Field(type=int.class, ctrl=true, hndRb="TrgCfgTrigEventRb", hndSet="TrgCfgTrigEventSet") public int event
public TrgConfig()
DaqConfig
object.public TrgConfig(DataAdaptor daptSrc)
TrgConfig
object initialized
from the given data source.daptSrc
- persistent data store containing
data structure field valuespublic TrgConfig(ProfileDevice ws) throws ConnectionException, GetException
TrgConfig
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.TrgConfig acquire(ProfileDevice ws) throws ConnectionException, GetException
ws
- data acquisition deviceConnectionException
- unable to connect parameter read back channelGetException
- general field initialization exceptionpublic void setTrigEvent(ProfileDevice.TRGEVT evt)
event
field
using the appropriate TRGEVT
enumeration
constant.evt
- trigger event codepublic ProfileDevice.TRGEVT getTrigEvent()
event
of this
data structure.