Package xal.smf.impl
Class MagnetMainSupply
java.lang.Object
xal.smf.impl.MagnetPowerSupply
xal.smf.impl.MagnetMainSupply
- All Implemented Interfaces:
DataListener
MainMagnetSupply represents a power supply that is the main supply for a
magnet.
- Author:
- tap
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AccessibleProperty
static final String
final AccessibleProperty
static final String
MPS - field setpoint about which warnings and alarms are specifiedstatic final String
static final String
final AccessibleProperty
Fields inherited from class xal.smf.impl.MagnetPowerSupply
accelerator, channelSuite, current, CURRENT_RB_HANDLE, CURRENT_SET_HANDLE, CYCLE_INVALID, CYCLE_STATE_HANDLE, CYCLE_VALID, cycleState, CYCLING, strId
-
Constructor Summary
ConstructorsConstructorDescriptionMagnetMainSupply
(Accelerator anAccelerator) Creates a new instance of MainSupply -
Method Summary
Modifier and TypeMethodDescriptiondouble
getField()
Get the field contribution from this power supply.double
Get the value to which the field is set.getType()
Get the power supply typedouble
Get the field lower alarm limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.double
get the field lower display limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.double
get the field lower settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.double
Get the field lower warning limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.protected void
setCycleEnable
(boolean enable) Set the cycle enable state of the magnet power supply.void
setField
(double newField) Set the field contribution from this power supply.boolean
suppliesNode
(AcceleratorNode node) Check if the electromagnet is supplied by this power supply.double
Get the field upper alarm limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.double
get the field upper display limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.double
get the field upper settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.double
Get the field upper warning limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.Methods inherited from class xal.smf.impl.MagnetPowerSupply
dataLabel, findChannel, getAccelerator, getAccessibleProperties, getAccessibleProperties, getAndConnectChannel, getChannel, getChannelSuite, getCurrent, getCycleState, getDefaultHandles, getId, getNodes, getNodes, getProperties, getReadbackHandles, getSetHandle, lowerCurrentLimit, setCurrent, setId, update, upperCurrentLimit, write
-
Field Details
-
CYCLE_ENABLE_HANDLE
- See Also:
-
FIELD_SET_HANDLE
- See Also:
-
FIELD_RB_HANDLE
- See Also:
-
FIELD_BOOK_HANDLE
MPS - field setpoint about which warnings and alarms are specified- See Also:
-
fieldSet
-
bBook
-
cycleEnable
-
-
Constructor Details
-
MagnetMainSupply
Creates a new instance of MainSupply
-
-
Method Details
-
getType
Get the power supply type- Specified by:
getType
in classMagnetPowerSupply
- Returns:
- The power supply type
-
setCycleEnable
Set the cycle enable state of the magnet power supply. If enabled, the magnet will be cycled when the field is set.- Parameters:
enable
- True to enable cycling; false to disable cycling.- Throws:
PutException
-
getField
Get the field contribution from this power supply. T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.- Returns:
- the field contribution
- Throws:
GetException
-
setField
Set the field contribution from this power supply. If cycle enable is set to true the field is cycled otherwise it is simply set to the specified value.- Parameters:
newField
- is the new field level in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.- Throws:
PutException
-
getFieldSetting
Get the value to which the field is set. Note that this is not the readback.- Returns:
- the field setting in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
- Throws:
GetException
-
upperDisplayFieldLimit
get the field upper display limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc. This is the preferred upper field limit for setting magnets as it represents an operational limit.- Throws:
GetException
-
lowerDisplayFieldLimit
get the field lower display limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc. This is the preferred lower field limit for setting magnets as it represents an operational limit.- Throws:
GetException
-
upperFieldLimit
get the field upper settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.- Throws:
GetException
-
lowerFieldLimit
get the field lower settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.- Throws:
GetException
-
upperAlarmFieldLimit
Get the field upper alarm limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.- Throws:
GetException
-
lowerAlarmFieldLimit
Get the field lower alarm limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.- Throws:
GetException
-
upperWarningFieldLimit
Get the field upper warning limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.- Throws:
GetException
-
lowerWarningFieldLimit
Get the field lower warning limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.- Throws:
GetException
-
suppliesNode
Check if the electromagnet is supplied by this power supply.- Specified by:
suppliesNode
in classMagnetPowerSupply
- Parameters:
node
- The electromagnet to check- Returns:
- true if the node is supplied by this supply and false otherwise
-