ALBA-Synchrotron / sardana-icepap

IcePAP plugins for Sardana
GNU General Public License v3.0
0 stars 2 forks source link

Add generic ipap_rockit macro #26

Closed ovallcorba closed 9 months ago

ovallcorba commented 10 months ago

A macro ipap_rockit has been added as a generic to perform a cyclic movement of a motor between two positions with a specific velocity.

It can be launched in foreground or background, allowing it to be launched several times for different motors at once. It uses the icepap library directly, preparing a table list and launching the command ltrack (list track) on the icepap. In the background mode the macro ipap_rockit_stop <motor_name> should be used to stop the rockit.

The original position and velocity are stored in an environment variable (_IcepapRockit) and they are recovered when the rockit is stopped.