Section 10: Instrument programming
Series 3700A System Switch/Multimeter Reference Manual
10-56
3700AS-901-01 Rev. D/June 2018
An attempted TSP-Link reset operation will fail if any of the following conditions are true:
•
Two or more instruments in the system have the same node number
•
There are no other instruments connected to the instrument performing the reset (only if the
expected number of nodes was not provided in the reset call)
•
One or more of the instruments in the system is turned off
•
If the actual number of nodes is less than the expected number
The programming example below illustrates a TSP-Link reset operation and displays its state:
tsplink.reset()
print(tsplink.state)
If the reset operation is successful,
online
is output to indicate that communications with all nodes
have been established.
Using the expanded system
Accessing nodes
You can access all the remote commands for a specific node by adding
node
[N
].
to the beginning
of the remote command, where
N
is the node number.
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,
localnode
can be used instead of
node[1]
.
The following programming examples illustrate how to access instruments in the TSP-Link system
(shown in TSP-Link connections):
•
You can use any one of the following three commands to reset all channels of node 1 (which, in
this example, is the master). The other nodes in the system are not affected.
channel.reset("allslots")
localnode.channel.reset("allslots")
node[1].channel.reset("allslots")
•
The following command will reset all channels of node 4, which is a subordinate. The other nodes
are not affected.
node[4].channel.reset("allslots")