
Models 707B and 708B Switching Matrix Reference Manual
Section 6: Instrument programming
707B-901-01 Rev. A / August 2010
6-45
Example
String concatenation lines
Optimized with the table.concat function
MyPattern = "1A03"
MyPattern = MyPattern .. ",1B03"
MyPattern = MyPattern .. ",1C03"
MyPattern = MyPattern .. ",1D03"
MyPattern = MyPattern .. ",1E03"
print(MyPattern)
MyTable = { }
MyTable[1] = "1A03,"
MyTable[2] = "1B03,"
MyTable[3] = "1C03,"
MyTable[4] = "1D03,"
MyTable[5] = "1E03"
MyPattern =
table.concat(MyTable)
print(MyPattern)
The output is:
1A03,1B03,1C03,1D03,1E03
The output is:
1A03,1B03,1C03,1D03,1E03
CAUTION
If the instrument encounters memory allocation errors when the memory used is above 95%, the state
of the instrument cannot be guaranteed. After attempting to save off any important data, it is
recommended that you turn off power to the instrument and turn it back on to return the instrument to
a known state. Cycling power resets the runtime environment. Unsaved scripts and channel patterns
will be lost.
TSP-Link system and running parallel test scripts
TSP-Link system
You can use TSP-Link to expand your test system to include up to 64 addressable TSP-Link-enabled
instruments (32 instruments at a time). The expanded system can be stand-alone or computer-based.
Stand-alone system:
You can run a script from the front panel of any instrument (node) connected to
the system. When a script is run, all nodes in the system go into remote operation (REM indicators
turn on). The node running the script becomes the master 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 indicators turn off), and the master/subordinate relationship between nodes is
dissolved.
Computer-based system:
You can use a computer and a LAN, GPIB, or RS-232 interface to any
single node in the system. This node becomes the interface to the entire system. When a command is
sent through this node, all nodes go into remote operation (REM indicators turn on). The node that
receives the command becomes the master and can control all of the other nodes, which become its
subordinates. In a computer-based system, the master/subordinate relationship between nodes can
only be dissolved by performing an abort.