PSI BOX PLUS+ Reference
Control Functions
X.
Executes Stored Macro.
__
_____________________
Purpose.
Causes the PSI BOX to execute the stored macro
__________
command.
The X command can be embedded within any valid PSI
BOX command string or be by itself. The X command takes one
optional parameter that determines the number of times it is to
execute. The X parameter range is 1-65535. If X 0 is specified
the PSI BOX will perform the macro indefinitely, SO
BEWARE!
The X command cannot call itself. IE The X command
cannot be embedded within a macro command string, otherwise
an error is flagged when the macro is executed.
Used carefully and intelligently the X and MACRO commands
provide a powerful and elegant means of automating the
repetitive collection of large amounts of data.
Format.
X
_________
Params.
One or None.
_________
Returns.
Any depending on macro contents.
__________
Example.
________
_
BUS X
:REM Executes macro once.
BUS MTA LISTEN 4 X UNT UNL
:REM macro within command
string
BUS X,1000
:REM Executes macro 1000 times.
BUS OUTPUT "CURVE?" X 1024 UNL UNT
:REM Executes 1024 times
Bus Activity.
___________
_
any
Page 164
Chapter 8