Scan Symbols

The following symbols are created by the scan routine. There are intended to be used by the scan macros.

 start
stop
delta
 position
The actual position, not the requested one. There may be a difference because motors are move in steps and not in units. position is created after before_type_scan has been called.
 position_setpoint
The nominal position.
 np_total
The total number of points.
 repeat_flag
1 for repeated scans, 0 otherwise.
 repeat_total
Total number of repeats, default 1.
 rindex
The current repeat count.
 sindex
The current number of stops. sindex is created after before_type_scan has been called.
 sample_time
 scan_par
 ssa
 scan_name
The scan name.
 scan_device
e.g. mot11, energy, ...
 type_scan
e.g. energy_scan = 1
 wait_time ONLINE waits WAIT_TIME seconds after it moved to the new position before it calls DURING_xxx_SCAN. The idea is to reduce the effect of mechanical instabilities.

These symbols are created by the general scan routine before after_type_scan.gra is called:

 scan_total_sample_time
 scan_total_elapsed_time
 scan_dead_time

The symbols bem_command (before-energy-move) and aem_command (after-energy-move) may be used to execute certain commands just befare and after the energy is moved. This feature has been implemented to disable the MOSTAB during energy moves and turn it on afterwards. bem_command may use the symbol energy_setpoint_bem.