
2600AS-901-01 Rev. B / September 2008
Return to
14-9
Series 2600A System SourceMeter® Instruments Reference Manual
Section 14: System Expansion (TSP-Link)
•
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 network
for more information).
Coordinating overlapped operations in remote groups
Errors occur if you send a command to a node in a remote group running an overlapped operation.
All nodes in a group must be in the overlapped idle state before the master node can send a
command to the group.
Use the
waitcomplete
command to:
•
Group leader and master node:
To wait for all overlapped operations running in the
local group to complete.
•
Master node only:
To wait for all overlapped operations running on a remote group to
complete.
•
Master node only:
To wait for all groups to complete overlapped operations.
For additional information, refer to
and the
command.
The following code is an example on how to issue the
waitcomplete
command from the master
node:
-- Waits for each node in group G to complete all overlapped operations.
waitcomplete(G)
-- Waits for all groups on the TSP-Link network to complete overlapped
-- operations.
waitcomplete(0)
The group leader can issue the waitcomplete command to wait for the local group to complete all
overlapped operations.
The following code is an example of how to issue the waitcomplete
command:
-- Waits for all nodes in a local group to complete the overlapped
-- operations.
waitcomplete()