2606B System SourceMeter® Instrument Reference Manual
Section 6: Instrument programming
2606B-901-01 Rev. B / May 2018
6-57
Using TSP-Net commands with TSP-enabled instruments, a 2606B can download a script to another
TSP-enabled instrument and have both instruments run scripts independently. The 2606B can read
the data from the remote instrument and either manipulate the data or send the data to a different
remote instrument on the LAN. You can simultaneously connect to a maximum of 32 devices using
standard TCP/IP networking techniques through the LAN port of the 2606B.
Using TSP-Net with any ethernet-enabled instrument
Refer to
(on page 7-1) for details about the commands presented in this
section.
The 2606B LAN port is auto-sensing (Auto-MDIX), so you can use either a LAN crossover cable or a
LAN straight-through cable to connect directly from the 2606B to an ethernet device or to a hub.
To set up communication to a remote ethernet-enabled instrument that is TSP
®
enabled:
1. Send the following command to configure TSP-Net to send an abort command when a
connection to a TSP instrument is established:
tspnet.tsp.abortonconnect = 1
If the scripts are allowed to run, the connection is made, but the remote instrument may be busy.
2. Send the command:
connectionID
= tspnet.connect(
ipAddress
)
Where:
connectionID
is the connection ID that will be used as a handle in all other TSP-Net function calls.
ipAddress
is the IP address, entered as a string, of the remote instrument.
See
(on page 7-369) for additional detail.
To set up communication to a remote ethernet-enabled device that is not TSP enabled:
Send the command:
connectionID
= tspnet.connect(
ipAddress
,
portNumber
,
initString
)
Where:
connectionID
is the connection ID that will be used as a handle in all other
tspnet
function calls.
ipAddress
is the IP address, entered as a string, of the remote device.
portNumber
is the port number of the remote device.
initString
is the initialization string that is to be sent to
ipAddress
.
See
(on page 7-369) for additional detail.