Combined Motor Scans

It is possible to combine the movements of two arbitrary motors:

ONLINE> scan/cm=mot2/fac*tor=val mot1

Both motors, m1 and m2 can be moved independent of each other as long as the scan is not active.

If the scan is active, the new position of m2 is calculated by m$_2^{new}$ = (m$_1^{new}$ - m$_1^{start}$) * val + m$_2^{start}$. With m$_1^{start}$ and m$^2_{start}$ being stored when the scan is started. m$_1$ runs from start to stop and m$_1^{new}$ is the current scan position.

The symbol position_cm holds the position of the second motor, the symbol scan_device_cm the name of the second motor.