public class WireHarp extends ProfileDevice
Represents a harp diagnostic device, in particular such a device installed at the SNS facility. The harp has fixed, physical (carbon) wires used to measure the profile of the particle beam. This class implements the device API.
DaqConfig.cntWires
. The value is hard coded with the constant
DaqConfig.CNT_WIRES
since there is no way to dynamically
acquire this value.
Ported from XAL on Jul 15, 2014.
· Jonathan M. Freed
Modifier and Type | Class and Description |
---|---|
static class |
WireHarp.CMD
Wire Scanner Commands
|
static class |
WireHarp.DaqConfig
Class
WireHarp.DaqConfig . |
static class |
WireHarp.DataFit
Structure for maintaining a
WireHarp profile data
fits. |
static class |
WireHarp.DataRaw
Structure for maintaining a
WireHarp profile data
measurement. |
static class |
WireHarp.DevConfig
Data structure containing the configuration parameters for
a
WireHarp device. |
static class |
WireHarp.DevStatus
Contains device status parameters.
|
static class |
WireHarp.FitAttrSet
Data structure containing the profile signal characteristics.
|
ProfileDevice.ANGLE, ProfileDevice.GAIN, ProfileDevice.IProfileData, ProfileDevice.IProfileDomain, ProfileDevice.MACROPULSE, ProfileDevice.MVTVAL, ProfileDevice.TRGEVT
Modifier and Type | Field and Description |
---|---|
static int |
CNT_WIRES
Kluge - Number of wires on current SNS harps
|
static java.lang.String |
HARDWARE_TYPE
Hardware type for the WireHarp class
|
static java.lang.String |
SOFTWARE_TYPE
software type for the WireHarp class
|
static java.lang.String |
STR_TYPE_ID
The type code for this hardware device
|
channelSuite, m_bolIsSoft, m_bolStatus, m_bolValid, m_bucAlign, m_bucAper, m_bucTwiss, m_dblLen, m_dblPos, m_dblS, m_mapAttrs, m_objAccel, m_seqParent, m_strEId, m_strId, m_strPId
Constructor and Description |
---|
WireHarp(java.lang.String strId)
Creates a new instance of
WireHarp . |
Modifier and Type | Method and Description |
---|---|
int[] |
getCommandResult()
Returns the command result code(s).
|
java.lang.String |
getSoftType()
Derived class may furnish a unique software type
|
java.lang.String |
getType()
Get the device type
|
void |
runCommand(WireHarp.CMD cmd)
Issue a wire scanner command with no arguments.
|
acquireConfig, acquireData, configureHardware, createMonitor, testConnection, testConnection
addBucket, channelSuite, clear, dataLabel, findChannel, getAccelerator, getAlign, getAndConnectChannel, getAper, getBucket, getBuckets, getChannel, getDesignPropertyValue, getEId, getHandles, getId, getLength, getLivePropertyChannels, getLivePropertyValue, getParent, getPId, getPitchAngle, getPosition, getPrimaryAncestor, getRollAngle, getSDisplay, getStatus, getTwiss, getValid, getXOffset, getYawAngle, getYOffset, getZOffset, hasBucket, hasParent, isKindOf, isMagnet, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setLength, setParent, setPitchAngle, setPosition, setRollAngle, setSDisplay, setStatus, setTwiss, setValid, setXOffset, setYawAngle, setYOffset, setZOffset, toString, update, write
public static final java.lang.String STR_TYPE_ID
public static final java.lang.String SOFTWARE_TYPE
public static final java.lang.String HARDWARE_TYPE
public static final int CNT_WIRES
public WireHarp(java.lang.String strId)
WireHarp
.strId
- public java.lang.String getType()
getType
in class AcceleratorNode
public java.lang.String getSoftType()
getSoftType
in class AcceleratorNode
public void runCommand(WireHarp.CMD cmd) throws ConnectionException, PutException, java.lang.InterruptedException
cmd
- wire scanner commandConnectionException
- unable to find channelPutException
- unable to set channel valuejava.lang.InterruptedException
- command buffer reset thread interruptedpublic int[] getCommandResult() throws ConnectionException, GetException
ConnectionException
- Unable to connect to result readback channelGetException
- Unable to read result from readback channel