Section 6: Instrument programming
Models 707B and 708B Switching Matrix Reference Manual
6-12
707B-901-01 Rev. B / January 2015
You also cannot use top-level command names as variable names. If you use these names, it will
result in the loss of use of the commands. For example, if you send the command
digio = 5
, you
cannot access the
digio.*
commands until you turn the instrument power off and then turn it on
again. These groups include:
Top level command names
beeper
localnode
bit
opc
channel
reset
dataqueue
scan
delay
slot
digio
status
display
timer
errorqueue
trigger
eventlog
tsplink
exit
tspnet
format
userstring
gpib
waitcomplete
lan
Values and variable types
In Lua, you can use variables to store values in the run-time environment for later use.
Lua is a dynamically-typed language; the type of the variable is determined by the value that is
assigned to the variable.
Variables in Lua are assumed to be global unless they are explicitly declared to be local. A global
variable is accessible by all commands. Global variables do not exist until they have been assigned a
value.