Section 6: Instrument programming
Models 707B and 708B Switching Matrix Reference Manual
6-52
707B-901-01 Rev. A / August 2010
Running parallel test scripts
You can issue the
execute
command from the master node to initiate test script and Lua code on a
remote node. The
execute
command places the remote node in the overlapped operation state. As
a test script runs on the remote node, the master node continues to process other commands in
parallel.
Note the following:
•
Use the following code to send the
execute
command on a remote node.
•
N
represents the node number that runs the test script.
•
Replace
N
with the node number.
To set the global variable on Node
N
equal to 2.5:
node[N].execute("setpoint = 2.5")
The following code is an example of how to run a test script on a remote node.
NOTE
For this example,
scriptVar
is defined on the local node.
To run
scriptVar
on Node N
:
node[N].execute(scriptVar.source)
The following code demonstrates how to run a test script defined on a remote node.
NOTE
For this example,
scriptVar
is defined on the remote node.
To execute a script defined on the remote node:
node[N].execute("scriptVar()")
It is recommended that you copy large scripts to a remote node to improve system performance. See
Copying test scripts across the TSP-Link network
(on page 6-54) for more information.