Package xal.smf.impl
Class WireHarp.DevConfig
java.lang.Object
xal.smf.scada.ScadaRecord
xal.smf.impl.profile.ParameterSet
xal.smf.impl.WireHarp.DevConfig
- All Implemented Interfaces:
Cloneable
,DataListener
- Enclosing class:
- WireHarp
Data structure containing the configuration parameters for a
WireHarp
device. The data structure is active and can be
used to set the configuration parameters as well.- Since:
- Mar 20, 2014
- Author:
- Christopher K. Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class xal.smf.scada.ScadaRecord
ScadaRecord.IFieldDescriptor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new, uninitializedDevConfig
object.Create a newActrConfig
object initialize with values fetched from the given device.DevConfig
(DataAdaptor daptSrc) Create a newDevConfig
object initialized from the given data source. -
Method Summary
Modifier and TypeMethodDescriptionstatic WireHarp.DevConfig
Returns the defined set of configuration parameters currently used for the given device.Returns the class name as theDataAdaptor
data label.getGain()
Return the gain as aGAIN
enumeration.Converts the trigger event code to the correspondingTRGEVT
enumeration constant and returns it.void
setGain
(ProfileDevice.GAIN gain) Set the gain as aGAIN
enumeration.void
Sets the trigger event code by converting the givenTRGEVT
enumeration constant to the correct code and assigning the value to the trigger event field in this data structure.Methods inherited from class xal.smf.scada.ScadaRecord
clone, getFieldDescriptor, getFieldDescriptorMap, getFieldDescriptors, loadHardwareValues, setFieldFromPV, setHardwareValues, setPvFromField, toString, update, write
-
Field Details
-
gainCmn
The (discrete) common amplifier gain for all profile channels.
Range = {0, 1, 2} -
trgDelay
@Field(type=double.class, ctrl=true, hndRb="CfgTrgDelayRb", hndSet="CfgTrgDelaySet") public double trgDelayThe triggering delay, I think it is in micro-seconds. This is the delay between the trigger event and the actual data acquisition. -
trgEvent
@Field(type=int.class, ctrl=true, hndRb="CfgTrgEventRb", hndSet="CfgTrgEventSet") public int trgEventTriggering event type code.- See Also:
-
-
Constructor Details
-
DevConfig
public DevConfig()Create a new, uninitializedDevConfig
object.- Since:
- Mar 20, 2014
-
DevConfig
Create a newDevConfig
object initialized from the given data source.- Parameters:
daptSrc
- data source containing data structure fields- Since:
- Mar 20, 2014
-
DevConfig
Create a newActrConfig
object initialize with values fetched from the given device.- Parameters:
smHarp
- data acquisition device- Throws:
ConnectionException
- unable to connect to a parameter channelGetException
- unable to retrieve values from channel access- Since:
- Mar 20, 2014
-
-
Method Details
-
acquire
Returns the defined set of configuration parameters currently used for the given device.- Parameters:
smfHarp
- profile device being queried- Returns:
- current configuration for the given device
- Throws:
ConnectionException
- unable to connect to a parameter read back channelGetException
- general channel access get exception- Since:
- Mar 20, 2014
-
dataLabel
Returns the class name as theDataAdaptor
data label.- Specified by:
dataLabel
in interfaceDataListener
- Overrides:
dataLabel
in classParameterSet
- Returns:
- a tag that identifies the receiver's type
- Since:
- Mar 20, 2014
- See Also:
-
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
-
setTriggerEvent
Sets the trigger event code by converting the givenTRGEVT
enumeration constant to the correct code and assigning the value to the trigger event field in this data structure.- Parameters:
evt
- enumeration for the desired trigger event code- Since:
- Mar 21, 2014
- See Also:
-
getTriggerEvent
Converts the trigger event code to the correspondingTRGEVT
enumeration constant and returns it.- Returns:
- the
TRGEVT
constant for the current trigger event code - Since:
- Mar 21, 2014
- See Also:
-