
Section 3: Functions and features
Model 2461 Interactive SourceMeter® Instrument Reference Manual
3-154
2461-901-01 A/November 2015
From the front panel:
1. Power on all instruments connected to the TSP-Link network.
2. Press the
MENU
key.
3. Under System, select
Communication
. The SYSTEM COMMUNICATIONS window opens.
4. Select the
TSP-Link
tab.
5. Select
Initialize
.
Using TSP commands:
To initialize the TSP-Link system, send the command:
tsplink.initialize()
To check the state of the TSP-Link system, send the command:
print(tsplink.state)
If initialization was successful,
online
is returned. If initialization was not successful,
offline
is
returned.
Sending commands to TSP-Link nodes
You can send remote commands to any instrument on the TSP-Link system by adding
node[
N
].
to
the beginning of the remote command, where
N
is the node number.
For example, to sound the beeper on node 10, you would send the command:
node[10].beeper.beep(2, 2400)
To send a command to the master, you can interact with it as if it were a single instrument.
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.initialize()
command. The
tsplink.initialize()
command reinitializes the
TSP-Link network and will turn 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()