Bases: Moveable
The switcher is a device that maps switch states onto discrete values of a continuously moveable device.
This is useful if you have for example a motor that only every moves to certain discrete positions, e.g. a monochromator changer. Then you can control it using
move(changer_switch, 'up')
move(changer_switch, 'down')
instead of moving the axis to positions hard to understand:
move(changer, 14.55)
move(changer, 51.3)
and still have the underlying continuously moveable device available for debugging purposes.
Attached devices
Parameters
Precision for comparison.
List of state names.
List of values to move to.
Parameters inherited from the base classes: description, fixed, fmtstr, loglevel, lowlevel, maxage, pollinterval, target, unit
Bases: Readable
Same as the Switcher, but for read-only underlying devices.
Attached devices
Parameters
Precision for comparison. Default value: 0.
List of state names.
List of values to move to.
Parameters inherited from the base classes: description, fmtstr, loglevel, lowlevel, maxage, pollinterval, unit