Package xal.smf.impl
Class WireHarp
java.lang.Object
xal.smf.AcceleratorNode
xal.smf.impl.profile.ProfileDevice
xal.smf.impl.WireHarp
- All Implemented Interfaces:
Comparable,ElementType,DataListener
Wire Harp Hardware
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.
NOTES:
· There is a pretty egregious kluge on the attribute
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
- Since:
- Jan 9, 2013
- Author:
- Christopher K. Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWire Scanner Commandsstatic classClassWireHarp.DaqConfig.static classStructure for maintaining aWireHarpprofile data fits.static classStructure for maintaining aWireHarpprofile data measurement.static classData structure containing the configuration parameters for aWireHarpdevice.static classContains device status parameters.static classData structure containing the profile signal characteristics.Nested classes/interfaces inherited from class xal.smf.impl.profile.ProfileDevice
ProfileDevice.ANGLE, ProfileDevice.GAIN, ProfileDevice.IProfileData, ProfileDevice.IProfileDomain, ProfileDevice.MACROPULSE, ProfileDevice.MVTVAL, ProfileDevice.TRGEVT -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofWireHarp.WireHarp(String strId, ChannelFactory channelFactory) Primary Constructor -
Method Summary
Modifier and TypeMethodDescriptionint[]Returns the command result code(s).Derived class may furnish a unique software typegetType()Get the device typevoidrunCommand(WireHarp.CMD cmd) Issue a wire scanner command with no arguments.Methods inherited from class xal.smf.impl.profile.ProfileDevice
acquireConfig, acquireData, configureHardware, createMonitor, testConnection, testConnectionMethods inherited from class xal.smf.AcceleratorNode
addBucket, batchConnectAllHandles, batchConnectAllHandlesAndWait, channelSuite, clear, compareTo, dataLabel, findChannel, getAccelerator, getAccessibleProperties, getAccessibleProperties, getAlign, getAllChannels, getAndConnectChannel, getAndConnectChannelSetAndReadback, getAper, getBucket, getBuckets, getChannel, getDefaultHandles, getDesignPropertyValue, getEId, getHandles, getId, getLength, getLivePropertyChannels, getLivePropertyValue, getParent, getPId, getPitchAngle, getPosition, getPrimaryAncestor, getProperties, getReadbackHandles, getRollAngle, getSDisplay, getSetHandle, getStatus, getTwiss, getValid, getXOffset, getYawAngle, getYOffset, getZOffset, hasBucket, hasParent, isChannelSettable, isKindOf, isMagnet, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setDesignPropertyValue, setLength, setLivePropertyValue, setParent, setPitchAngle, setPosition, setRollAngle, setSDisplay, setStatus, setTwiss, setValid, setValueAndVerify, setXOffset, setYawAngle, setYOffset, setZOffset, toString, update, write, writeAttributes, writeStatus
-
Field Details
-
STR_TYPE_ID
The type code for this hardware device- See Also:
-
SOFTWARE_TYPE
software type for the WireHarp class- See Also:
-
HARDWARE_TYPE
Hardware type for the WireHarp class- See Also:
-
CNT_WIRES
public static final int CNT_WIRESKluge - Number of wires on current SNS harps- See Also:
-
-
Constructor Details
-
WireHarp
Primary Constructor- Parameters:
strId- unique identifier of this nodechannelFactory- factory for generating channels for this node
-
WireHarp
Creates a new instance ofWireHarp.- Parameters:
strId-- Since:
- Feb 13, 2013
-
-
Method Details
-
getType
Get the device type- Specified by:
getTypein classAcceleratorNode- Returns:
- The type identifier of this class
-
getSoftType
Derived class may furnish a unique software type- Overrides:
getSoftTypein classAcceleratorNode- Returns:
- the "software type" or the driver version for the hardware.
-
runCommand
Issue a wire scanner command with no arguments.- Parameters:
cmd- wire scanner command- Throws:
ConnectionException- unable to find channelPutException- unable to set channel valueInterruptedException- command buffer reset thread interrupted
-
getCommandResult
Returns the command result code(s). These are integer valued codes for the result of a previous issued device command. See the wire scanner documentation to interpret the particular resultant code.- Returns:
- command result array of integer codes for a command result.
- Throws:
ConnectionException- Unable to connect to result readback channelGetException- Unable to read result from readback channel
-