Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-150 2601B-PULSE-901-01A April 2020
node[N].setglobal()
This function sets the value of a global variable.
Usage
node[N].setglobal("name", value)
The node number of this instrument (1 to 6463)
The global variable name to set
The value to assign to the variable
Details
From a remote node, use this function to assign the given value to a global variable.
Do not use this command to create or set the value of a global variable from the local node (set the
global variable directly instead). This command should only be used from a remote master when
controlling this instrument over a TSP-Link network.
Example
node[3].setglobal("x", 5)
Sets the global variable x on node 3 to the value of 5.
Also see
node[N].getglobal() (on page 11-149)
TSP advanced features (on page 10-51)
opc()
This function sets the operation complete status bit when all overlapped commands are completed.
Usage
opc()
Details
This function causes the operation complete bit in the Standard Event Status Register to be set when
all previously started local overlapped commands are complete.
Note that each node independently sets its operation complete bits in its own status model. Any
nodes that are not actively performing overlapped commands set their bits immediately. All remaining
nodes set their own bits as they complete their own overlapped commands.
Example
opc()
waitcomplete()
print("1")