Section 6: Instrument programming
Model 2651A High Power System SourceMeter® Instrument Reference Manual
6-58
2651A-901-01 Rev. A / March 2011
To set the global variable on node N equal to 2.5:
node[
N
].execute("setpoint = 2.5")
The following code demonstrates how to run a test script defined 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 programming example below demonstrates how to run a test script defined on a remote node.
NOTE
For this example,
scriptVar
is defined on the remote node.
To run 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-59) 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
on the TSP-Link
®
network
•
Master node only
: To wait for all groups to complete overlapped operations
For additional information, see
(on page 7-374).
The following code is an example on how to send the
waitcomplete()
command from the master
node:
-- Waits for each node in group N to complete all overlapped operations.
waitcomplete(N)
-- Waits for all groups on the TSP-Link network to complete overlapped operations.
waitcomplete(0)