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, uninitializedDevConfigobject.Create a newActrConfigobject initialize with values fetched from the given device.DevConfig(DataAdaptor daptSrc) Create a newDevConfigobject initialized from the given data source. -
Method Summary
Modifier and TypeMethodDescriptionstatic WireHarp.DevConfigReturns the defined set of configuration parameters currently used for the given device.Returns the class name as theDataAdaptordata label.getGain()Return the gain as aGAINenumeration.Converts the trigger event code to the correspondingTRGEVTenumeration constant and returns it.voidsetGain(ProfileDevice.GAIN gain) Set the gain as aGAINenumeration.voidSets the trigger event code by converting the givenTRGEVTenumeration 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, uninitializedDevConfigobject.- Since:
- Mar 20, 2014
-
DevConfig
Create a newDevConfigobject initialized from the given data source.- Parameters:
daptSrc- data source containing data structure fields- Since:
- Mar 20, 2014
-
DevConfig
Create a newActrConfigobject 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 theDataAdaptordata label.- Specified by:
dataLabelin interfaceDataListener- Overrides:
dataLabelin classParameterSet- Returns:
- a tag that identifies the receiver's type
- Since:
- Mar 20, 2014
- See Also:
-
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
-
setTriggerEvent
Sets the trigger event code by converting the givenTRGEVTenumeration 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 correspondingTRGEVTenumeration constant and returns it.- Returns:
- the
TRGEVTconstant for the current trigger event code - Since:
- Mar 21, 2014
- See Also:
-