Pause command

The Pause before each event feature in the Run window causes a temporary halt in event processing at a point just before executing the first event command. Pressing the resume button allows event processing to occur upto the next pause point. If the Pause before each event button is unchecked, then resume will allow event processing to continue without further pauses.

The pause command works in the same way as the Pause before each event feature in the Run window, except that processing is paused at the point the pause command is executed. It may be used anywhere in the commands section.

If the pause command is placed inside a conditional statement, then the pause may be used to inspect spectra and variable values after some defined set of circumstances. Hence it can be a useful diagnostic aid.

The pause can be turned on and off by setting a global sortword in the *DATA section. See the example below which uses the sortword pauseflag.

Example

*COMMANDS
    ...
if pauseflag gt 0 pause
    ...
END
    ...