Controlling Motors and Counters

The "Motors/Counters" dialog in specfe is designed to provide a graphical interface to the motors and counters controlled by spec. When specfe starts up it reads the spec configuration files to determine what motors and counters are defined and automatically builds a display dialog. If the spec configuration is subsequently changed, the display will automatically adjust itself to the new configuration. The positions of the motors and the readings of the counter channel will also update whenever they change in spec, during a scan, for example. Additionally, specfe provides support for a "Tweak Mode" which may be activated to cause spec to count repeatedly, while allowing motor positions to be adjusted.

Figure 4. Controlling Motors and Counters

The display consists of two sub-dialogs, one for controlling the motors, the other for controlling the counters. In the case where there are a large number of motors or counters configured they will be divided among several sub-pages.

The Motor Control Dialog

The motor control dialog contains 8 columns of controls:

The motor movement commands work by constructing an appropriate spec command - either an 'mv' command for the Move button or an 'mvr' command for the Step +/- button, or a 'set' or 'set_lm' command for the Settings... dialog - and then sending the command directly to spec. If spec is busy doing something else - performing a scan for example - then these commands may have no effect.

The Counter Control Dialog and Tweaking Mode

The counter control dialog consists of three columns of controls for each counter channel:

Additionally, there is a row of five buttons below the counter display which are used to control some aspects of the counting operation.