ophyd.commands.set_lm¶
-
ophyd.commands.
set_lm
(positioner, limits)¶ Set the limits of the positioner
Sets the limits of the positioner or list of positioners. For EpicsMotors the fields .HLM and .LLM are set to the high and low limits respectively. For PVPositioners the .DRVH and .DRVL fields are set on the setopoint record. If neither method works then an IOError is raised.
Parameters: positioner : positioner or list of positioners
limits : single or list of tuple of form (+ve, -ve) limits
Raises: IOError
If the caput (EPICS put) fails then an IOError is raised.
Examples
Set the limits of motor m1 to (10, -10):
>>>set_lm(slt1_xc, (10, -10))
Set the limits of motors m1 and m2 to (2, -2) and (3, -3) respectively:
>>>set_lm([m1, m2], [[2,-2], [3, -3]])