User manual

Section 3: TSP Advanced Features Series 3700 System Switch/Multimeter Reference Manual
3-6 3700S-901-01 Rev. C / July 2008
Reassigning groups
Use the following code to change group assignment. You can add or remove a
node to a group at anytime.
-- Assigns the node to a different group.
node[N].tsplink.group = G
Running parallel test scripts
You can issue the execute command from the master node to initiate test
script and TSL 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, myscript is defined on the local node.
To run myscript on Node N:
node[N].execute(myscript.source)
The following code demonstrates how to run a test script defined on a remote
node.
NOTE For this example, myscript is defined on the remote node.
To execute a script defined on the remote node:
node[N].execute("myscript()")
It is recommended that you copy large scripts to a remote node to improve
system performance. See Copying test scripts across the TSP-Link
TM
network
(on page 3-8) for more information.