pcdsdevices.interface.tweak_base

pcdsdevices.interface.tweak_base(*args, scale=0.1)

Base function to control motors with the arrow keys.

With one motor, you can use the right and left arrow keys to move + and -. With two motors, you can also use the up and down arrow keys for the second motor. Three motor and more are not yet supported.

The scale for the tweak can be doubled by pressing + and halved by pressing -. Shift+up and shift+down can also be used, and the up and down keys will also adjust the scaling in one motor mode. The starting scale can be set with the keyword argument scale.

Ctrl+c will stop an ongoing move during a tweak without exiting the tweak. Both q and ctrl+c will quit the tweak between moves.