public static class WireHarp.DevConfig extends ParameterSet
WireHarp
device. The data structure is active
and can be used to set the configuration parameters as well.ScadaRecord.IFieldDescriptor
Modifier and Type | Field and Description |
---|---|
int |
gainCmn
The (discrete) common amplifier gain for all profile channels.
|
double |
trgDelay
The triggering delay, I think it is in micro-seconds.
|
int |
trgEvent
Triggering event type code.
|
Constructor and Description |
---|
DevConfig()
Create a new, uninitialized
DevConfig object. |
DevConfig(DataAdaptor daptSrc)
Create a new
DevConfig object initialized
from the given data source. |
DevConfig(WireHarp smHarp)
Create a new
ActrConfig object initialize
with values fetched from the given device. |
Modifier and Type | Method and Description |
---|---|
static WireHarp.DevConfig |
acquire(WireHarp smfHarp)
Returns the defined set of configuration parameters currently
used for the given device.
|
java.lang.String |
dataLabel()
Returns the class name as the
DataAdaptor
data label. |
ProfileDevice.GAIN |
getGain()
Return the gain as a
GAIN
enumeration. |
ProfileDevice.TRGEVT |
getTriggerEvent()
Converts the trigger event code to the corresponding
TRGEVT enumeration constant and returns it. |
void |
setGain(ProfileDevice.GAIN gain)
Set the gain as a
GAIN
enumeration. |
void |
setTriggerEvent(ProfileDevice.TRGEVT evt)
Sets the trigger event code by converting the given
TRGEVT enumeration constant to the correct
code and assigning the value to the trigger event
field in this data structure. |
clone, getFieldDescriptor, getFieldDescriptorMap, getFieldDescriptors, loadHardwareValues, setFieldFromPV, setHardwareValues, setPvFromField, toString, update, write
@AScada.Field(type=int.class, ctrl=true, hndRb="CfgGainCmnRb", hndSet="CfgGainCmnSet") public int gainCmn
@AScada.Field(type=double.class, ctrl=true, hndRb="CfgTrgDelayRb", hndSet="CfgTrgDelaySet") public double trgDelay
@AScada.Field(type=int.class, ctrl=true, hndRb="CfgTrgEventRb", hndSet="CfgTrgEventSet") public int trgEvent
TRGEVT
public DevConfig()
DevConfig
object.public DevConfig(DataAdaptor daptSrc)
DevConfig
object initialized
from the given data source.daptSrc
- data source containing data structure fieldspublic DevConfig(WireHarp smHarp) throws ConnectionException, GetException
ActrConfig
object initialize
with values fetched from the given device.smHarp
- data acquisition deviceConnectionException
- unable to connect to a parameter channelGetException
- unable to retrieve values from channel accesspublic static WireHarp.DevConfig acquire(WireHarp smfHarp) throws ConnectionException, GetException
smfHarp
- profile device being queriedConnectionException
- unable to connect to a parameter read back channelGetException
- general channel access get exceptionpublic java.lang.String dataLabel()
DataAdaptor
data label.dataLabel
in interface DataListener
dataLabel
in class ParameterSet
gov.sns.tools.data.DataListener#dataLabel()
public void setGain(ProfileDevice.GAIN gain)
GAIN
enumeration.gain
- new gain valuepublic ProfileDevice.GAIN getGain()
GAIN
enumeration.public void setTriggerEvent(ProfileDevice.TRGEVT evt)
TRGEVT
enumeration constant to the correct
code and assigning the value to the trigger event
field in this data structure.evt
- enumeration for the desired trigger event codetrgEvent
public ProfileDevice.TRGEVT getTriggerEvent()
TRGEVT
enumeration constant and returns it.TRGEVT
constant for the current
trigger event codetrgEvent