Prism
Operation Manual Issue 2.00
Page 7.29
WAIT_KEY(n,'c')
Wait for n seconds or until the PC key
specified by 'c' is pressed. If n is set to
-1, then the Macro waits forever for
the key.
In WAIT_KEY, instead of the 'c' parameter, these special tokens can be used (without
quotes):
ENTER
the <Enter> key;
ESC
the <Esc> key;
SPACE
the space bar;
QUIT
End the macro immediately at this
point;
7.4.2.4.
Macro File programming tips
An important consideration for the reliable operation of Macro Files is ensuring that the
DSA-1 will operate in the same way each time tha Macro File is executed. It is
therefore advised that the following steps are included at the start of any Macro File:
i)
Enter sub-menu 9.3. to select the DSA-1 'default' operating settings, and
then alter any that you need to afterwards. This prevents the state of the
DSA-1 on entry from affecting the operation of the Macro. Note that the
start-up settings of the DSA-1 are not lost;
ii)
Use sub-menu 9.1. setting 5 to disable the DSA-1's sub-menu memory.
This will allow Macro segments to be independent of each other since
navigation of the menu system will not depend on what has happened
before;
When navigating the DSA-1 menu system, specific sub-menus can be searched for by
using a combination of
GET_DSA_CHAR
and
JUMP_IF_CHAR
statements to look for the
menu numbers on the left of the DSA-1 screen. The same applies to parameter
settings. However, if i) and ii) above have been observed at the start of the Macro File,
the necessity for this is greatly reduced or removed.
Sometimes the DSA-1 may take a short time to perform a certain action, and during this
time tokens sent to it by the Macro Processor may be ignored (for example, when
selecting 'defaults' as recommended above). Therefore it is sometimes necessary to
insert delays in the Macro File using the
WAIT
Keyword, to let the DSA-1 finish its
operation before more tokens are sent.
Use comments liberally to make the file easier to read - especially if some of the shorter
forms of keywords have been used.