High Voltage SourceMeter Instrument Reference Manual Section 14:
2470-901-01 Rev. A / May 2019 14-97
node[N].getglobal()
This function returns the value of a global variable.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
value = node[N].getglobal("name")
The value of the variable
The node number of this instrument (1 to 63)
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() (on page 14-97)
node[N].setglobal()
This function sets the value of a global variable.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
node[N].setglobal("name", value)
The node number of this instrument (1 to 63)
The global variable name to set
The value to assign to the variable