Model 2651A High Power System SourceMeter® Instrument Reference Manual
Section 6: Instrument programming
2651A-901-01 Rev. A / March 2011
6-57
Group leader overview
Each group has a dynamic group leader. The last node in a group running any operation initiated by
the master node is the group leader.
The following list describes the functionality of the group leader:
•
Runs operations initiated by the master node
•
Initiates remote operations on any node with the same group number
•
Cannot initiate remote operations on any node with a different group number
•
Can use the
waitcomplete()
command without a parameter to wait for all overlapped
operations running on nodes in the same group
Assigning groups
Group numbers can range from 0 (zero) to 64. The default group number is 0. You can change the
group number at any time.
Use the following code to dynamically assign nodes to a group.
Note the following:
•
Each time the node powers off, the group number for that node changes to 0
•
Replace N with the node number
•
N represents the node number that runs the test scripts and the Lua code
•
Each time the node powers off, the group number for that node changes to 0
•
Replace G with the group number
-- Assigns the node to a group.
node[N].tsplink.group = G
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 send 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. Use the following code to send the
execute()
command on a remote node.
Note the following:
•
The
N
parameter represents the node number that runs the test script (replace
N
with the node
number).