setscans

configure scan options

DESCRIPTION

The setscans macro asks the following questions:

Sleep (settle) time before each scan point (0)?

Setting the sleep time to a nonzero value causes the scan macros to delay for that many seconds before counting at each point.

The value entered here is assigned to the _sleep global variable, which can also be assigned to directly.

The default value is zero.

Show updated moving and counting during scans (NO)?

This option turns on a feature where during moving and counting in scans, the motor positions or scaler contents are continually read and displayed on the screen. This feature works by redefining the standard macros _count and _move.

The default value is no.

Do hklscan prescan limit-check loops (YES)?

The prescan limit checks calculate motor positions for each point of the reciprocal space scans before moving any motors. On slower computers and for long scans these calculations can be annoyingly slow. You can disable these checks if you are reasonably sure your scans will not take motors outside their configured limits. Disabling prescan limit checks doesn't disable limit checking during the actual moves. Rather, it simply avoids having a scan aborted because of an attempt to move to a reciprocal space position that takes motors beyond their limits.

The value entered here is assigned to the _pre_chk global variable, which can also be assigned a zero or nonzero value directly.

The default value is 1 (yes).

Save motors to data file at each point for HKL scans (NO)?

Normally, spec doesn't write motor positions to the data file at each point in a scan when scanning over reciprocal space coordinates. The reason is that the motor positions can be recovered, if necessary, from the HKL coordinates that are saved, saving the motor positions can double the size of the data file, and as a rule, users use the reciprocal space coordinates rather than the motor positions in subsequent analysis of the data. However, if this option is selected, the positions of the geometry-related motors will be saved at each point for all standard HKL linear, arc, radial and mesh scans. (This option was introduced to the standard macros in spec release 5.05.01-7.)

The value entered here is assigned to the _sav_geo_mot global variable, which can also be assigned a zero or nonzero value directly.

The default value is 0 (no).

GLOBALS

UPDATE
The number of seconds between screen updates during updated moving and counting.
_sleep
The settle time, in seconds.
_pre_chk
If set, do the prescan limit checks for reciprocal-space scans.
_sav_geo_mot
If set, save geometry-related motor positions in the data file for reciprocal-space scans.

SEE ALSO

scans startup