ophyd.commands.set_pos¶
-
ophyd.commands.
set_pos
(positioner, position)¶ Set the position of a positioner
Set the position of a positioner or positioners to the value position. This function only works for EpicsMotors (Based on the EPICS Motor Record) and uses the .OFF field to set the current position to the value passed to the function.
Parameters: positioner : Positioner or list of positioners.
position : float or list of floats.
New position of positioners
Raises: TypeError
If positioner is not an instance of an EpicsMotor.
Examples
Set the position of motor m1 to 4:
>>>set_pos(m1, 4)
Set the position of motors m1 and m2 to 1 and 2 respectively:
>>>set_pos([m1, m2], [1, 2])
- Raises:
- TypeError: If positioner is not an instance of an EpicsMotor.