![Keithley DMM7510 Скачать руководство пользователя страница 842](http://html2.mh-extra.com/html/keithley/dmm7510/dmm7510_reference-manual_4027507842.webp)
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
Section 8: TSP command reference
DMM7510-901-01 Rev. B / May 2015
8-229
Example 1
node[2].execute(sourcecode)
Runs script code on node 2. The code is in a string variable
called
sourcecode
.
Example 2
node[3].execute("x = 5")
Runs script code in string constant (
"x = 5"
) to set
x
equal to 5 on node 3.
Example 3
node[32].execute(TestDut.source)
Runs the test script stored in the variable
TestDut
(previously stored on the master node) on node 32.
Also see
(on page 8-346)
node[N].getglobal()
This function returns the value of a global variable.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
value
= node[
N
].getglobal(
name
)
value
The value of the variable
N
The node number of this instrument (1 to 64)
name
The global variable name
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
(on page 8-230)