VARDEF Variable Definition
Example
OUTPUT
718;"VARDEF
V-AR,O;"
DISP "ENTER THE VALUE OF THE VARIABLE USING
THE ANALYZER KEYS"
OUTPUT
718;"V,AR
EP;"
OUTPUT
718;"V,AR?;"
ENTER 718;N
PRINT N
OUTPUT
718;"IP;"
OUTPUT
718."V
AR'."
#
-
*,
ENTER 718;N
PRINT N
Description
Lk$nes variable called V-AR and as-
signs it a value of 0.
The value of VAR is changed by
using the front-panel controls.
Returns entered value of
V-AR
to the
computer:
LGpluys
value on the computer screen.
Initializes
analyzer:
The value of V-AR changes to its
initial value afler an I.
The VARDEF command creates a user-defined variable and assigns it a value. User-defined
variables can be used in many of the spectrum-analyzer remote-control processes. Use
user-defined variables wherever “user-defined variable” appears in the syntax diagrams. An
instrument preset (IP) sets user-defined variables to their initial value (see example).
An error results if a variable name is the same as any reserved word.
‘Ihble
5-2 lists reserved
words.
User-defined variables occupy spectrum analyzer memory. Use the DISPOSE command to clear
user-defined variables from memory.
Programming Commands
5.583