# Hklscan

Hklscan is a command which allows to scan in reciprocal space expressed as Miller indizes on a four circle diffractometer. Prerequisite for this is the existence of a scan object and the hkl-object for doing crystallographic calculations. Make sure the properties of the hkl object (UB, wavelength, NB) have some reasonable relation to reality, otherwise the diffractometer may travel to nowhere. Also it is a good idea to drive the diffractometer to the end points of the intended scan in reciprocal space. hklscan will abort if the requested scan violates diffractometer limits. The commands implemented are quite simple:

hklscan start fH fK fL
  sets the start point for the HKL scan. Three values required, one for each reciprocal axis.
hklscan step sH sK Sl
  sets the step width in reciprocal space. Three values required, one for each reciprocal axis.
hklscan run NP mode preset
  executes the HKL scan. NP is the number of points to do, mode is the counting mode and can be either timer or monitor and preset is the preset value for the counter at each step.

Data is written automatically into a slightly modified TOPSI data format file. The status display with topsistatus or scanstatus might be slightly erratic as it uses two theta as x-axis.