Section 7: Command reference
localnode.getglobal()
This function returns the value of a global variable.
Type
TSP-Link accessible
Function
Yes (see Details)
Usage
value = node[N].getglobal(name)
value
N
name
Details
Use this function to retrieve the value of a global variable from a remote node.
Do not use this command to retrieve the value of a global variable from the local node. It is provided for the sole
purpose of accessing global variables on a node from a remote master node. The localnode prefix to the
function listing describes how remote commands are shared between nodes, rather than this command being a
localnode command.
Example
print(node[5].getglobal("test_val")) Retrieves and outputs the value of the global variable
Also see
Introduction to TSP advanced features
localnode.setglobal()
localnode.model
This attribute stores the model number.
Type
TSP-Link accessible
Attribute (R)
Yes
Usage
model = localnode.model
model
Example
print(localnode.model)
Also see
localnode.description
localnode.revision
7-128
Affected by
The value of the variable
The node number of the instrument retrieving the global variable from its runtime
environment
The global variable name
(on page 6-49)
(on page 7-133)
Affected by
Not applicable
The model number of the instrument
(on page 7-126)
(on page 7-131)
Models 707B and 708B Switching Matrix Reference Manual
Where saved
Default value
named test_val from Node 5.
Where saved
Default value
Not applicable
Not applicable
Outputs the model number.
707B-901-01 Rev. A / August 2010