
Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-127
Also see
localnode.execute()
This function starts test scripts on a remote node.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
(see
Details
)
Usage
node[N].execute(scriptCode)
N
The node number of the instrument on which to execute
script
scriptCode
A string containing the source code
Details
Only the master node can issue the execute command to a remote node. This function does not run test scripts
on the master node, only on a remote node.
This function may only be called when the group number of the node is different than the node of the master.
This function will not wait for the script to finish execution.
This function cannot be used on the local node. It is provided for the sole purpose of executing scripts 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 function.
Example 1
node[2].execute(sourcecode)
Runs script code on node 2.
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.source"
(previously stored on the master
node) on node 32.
Also see
Introduction to TSP advanced features
(on page 6-49)