Model 2657A High Power System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2657A-901-01 Rev. B/December 2012
7-145
Details
This function retrieves the value of a global variable from the run-time environment of this node.
Do not use this command to retrieve the value of a global variable from the local node. Instead, access the global
variable directly. This command should only be used from a remote master when controlling this instrument over
a TSP-link
®
network.
Example
print(node[5].getglobal("test_val"))
Retrieves and outputs the value of the global variable
named test_val from node 5.
Also see
node[N].setglobal()
This function sets the value of a global variable.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
node[
N
].setglobal(
name, value
)
N
The node number of this instrument
name
The global variable name to set
value
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
®
.
Example
node[3].setglobal("x", 5)
Sets the global variable
x
on node 3 to the value of 5.
Also see
Summary of Contents for 2657A
Page 3: ......