Package xal.smf.impl
Class WireScanner.TrgConfig
java.lang.Object
xal.smf.scada.ScadaRecord
xal.smf.impl.profile.ParameterSet
xal.smf.impl.WireScanner.TrgConfig
- All Implemented Interfaces:
Cloneable
,DataListener
- Enclosing class:
- WireScanner
Data structure containing configuration parameters for DAQ triggering.
- 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 TypeFieldDescriptiondouble
Time delay between beam-on event and actual DAQ start.int
Event code to trigger data acquisition - values 0,...,256static final ScadaFieldMap
Map of field names to SCADA field Descriptors -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new, uninitializedDaqConfig
object.Create a newTrgConfig
object initialize with values fetched from the given device.TrgConfig
(DataAdaptor daptSrc) Create a newTrgConfig
object initialized from the given data source. -
Method Summary
Modifier and TypeMethodDescriptionstatic WireScanner.TrgConfig
acquire
(ProfileDevice ws) Convenience method for retrieving a new initialized data structure populated from the given device state.Returns the triggering event code taken from the raw value fieldevent
of this data structure.void
Sets the value of theevent
field using the appropriateTRGEVT
enumeration constant.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
-
FLD_MAP
Map of field names to SCADA field Descriptors -
delay
@Field(type=double.class, ctrl=true, hndRb="TrgCfgDelayRb", hndSet="TrgCfgDelaySet") public double delayTime delay between beam-on event and actual DAQ start. NOTE: this value may be negative indicating DAQ before the beam-on event (thus, sampling only noise) -
event
@Field(type=int.class, ctrl=true, hndRb="TrgCfgTrigEventRb", hndSet="TrgCfgTrigEventSet") public int eventEvent code to trigger data acquisition - values 0,...,256
-
-
Constructor Details
-
TrgConfig
public TrgConfig()Create a new, uninitializedDaqConfig
object.- Since:
- Dec 20, 2009
-
TrgConfig
Create a newTrgConfig
object initialized from the given data source.- Parameters:
daptSrc
- persistent data store containing data structure field values- Since:
- Mar 17, 2010
-
TrgConfig
Create a newTrgConfig
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.TrgConfig 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
-
setTrigEvent
Sets the value of theevent
field using the appropriateTRGEVT
enumeration constant.- Parameters:
evt
- trigger event code- Since:
- Jan 19, 2010
-
getTrigEvent
Returns the triggering event code taken from the raw value fieldevent
of this data structure.- Returns:
- the trigger event converted from the raw field.
- Since:
- Jan 19, 2010
-