User manual

Series 3700 System Switch/Multimeter Reference Manual Section 2: TSP Programming Fundamentals
3700S-901-01 Rev. C / July 2008 2-33
Stand-alone system
A script can be run from the front panel of any node (instrument) in the system.
When a script is run, all nodes in the system go into remote operation (REM
annunciators turn on). The node running the script becomes the primary node
and can control all of the other nodes, which become its subordinates. When the
script is finished running, all the nodes in the system return to local operation
(REM annunciators turn off), and the primary/subordinate relationship between
nodes is dissolved.
PC-based system
When using a computer, the GPIB, LAN, or USB interface to any single node
becomes the interface to the entire system. When a command is sent through
one of these interfaces, all nodes go into remote operation (REM annunciators
turn on).
The node that receives the command becomes the primary node and can
control all of the other nodes, which become its subordinates. In a PC-based
system, the primary/subordinate relationship between nodes can only be
dissolved by sending an abort command.
Test Script Language (TSL) Reference
Introduction
A script is a program written using the Test Script Language (TSL) that the Test
Script Processor (TSP) executes. TSL is an efficient language, with simple
syntax and extensible semantics. TSL is derived from the Lua programming
language. See the website for the Lua Programming Language
(http://www.lua.org) for more information. Another source of useful information is
lua-users (http://lua-users.org), created for and by users of Lua programming
language.
Lua programming language reserved words:
and
function
return
elseif
nil
until
for
repeat
else
local
true
false
then
do
in
break
if
or
end
not
while