The variable localnode is an alias for node[N], where N is the node number of the node on which
the code is running. For example, if node 1 is running the code, you can use localnode instead
of node[1].
The following programming examples illustrate how to access instruments in the TSP-Link system
(shown in TSP-Link connections):
• Any one of the following commands reset SMU A of node 1 (which, in this example, is the master).
The other nodes in the system are not affected.
â–ª smua.reset()
â–ª localnode.smua.reset()
â–ª node[1].smua.reset()
• The following command resets SMU A of node 4, which is a subordinate. The other nodes are not
affected.
â–ª node[4].smua.reset()
Using the reset() command
Most TSP-Link
®
system operations target a single node in the system, but the reset() command
affects the system as a whole by resetting all nodes to their default settings:
-- Reset all nodes in a TSP-Link system to their default state.
reset()
Using the reset() command in a TSP-Link network differs from using the tsplink.reset()
command. The tsplink.reset() command reinitializes the TSP-Link network and turns off the
output of any TSP-linked instrument; it may change the state of individual nodes in the system.
Use node[N].reset() or localnode.reset() to reset only one of the nodes. The other nodes
are not affected. The following programming example shows this type of reset operation with code
that is run on node 1.
-- Reset node 1 only.
node[1].reset()
-- Reset the node you are connected to (in this case, node 1).
localnode.reset()
-- Reset node 4 only.
node[4].reset()