Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-218
707B-901-01 Rev. B / January 2015
Details
This function erases all information regarding other nodes connected on the TSP-Link system and
regenerates the system configuration. This function must be called at least once before any remote
nodes can be accessed. If the node number for any instrument is changed, the TSP-Link must be
reset again.
If
expectedNodes
is not given, this function generates an error if no other nodes are found on the
TSP-Link network.
If
nodesFound
is less than
expectedNodes
, an error is generated. Note that the node on which the
command is running is counted as a node. For example, giving an expected node count of 1 will not
generate any errors, even if there are no other nodes on the TSP-Link network.
Also returns the number of nodes found.
Example
nodesFound = tsplink.reset(2)
print("Nodes found = " .. nodesFound)
Perform a TSP-Link reset and indicate how
many nodes are found.
Sample output if two nodes are found:
Nodes found = 2
Sample output if fewer nodes are found and
if
localnode.showerrors = 1
:
1219, TSP-Link found fewer nodes
than expected
Nodes found = 1
Also see
(on page 7-127)
(on page 7-215)
(on page 7-218)
tsplink.state
This attribute describes the TSP-Link online state.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Not applicable
Not applicable
Not applicable
Usage
state
= tsplink.state
state
TSP-Link state (
online
or
offline
)
Details
When the instrument power is first turned on, the state is
offline
. After
tsplink.reset()
is
successful, the state is
online
.
Example
state = tsplink.state
print(state)
Read the state of the TSP-Link system. If it is online,
the output is:
online
Also see
(on page 7-215)
(on page 7-217)