9: TSP-Link and TSP-Net  2470 High Voltage SourceMeter Instrument 
 
9-14 2470-901-01 Rev. A / May 2019 
Using TSP-Net with any ethernet-enabled instrument 
Refer to TSP command reference (on page 14-1) for details about the commands presented in this 
section. 
The 2470 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 2470 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
c
onnection 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 tspnet.connect() (on page 14-277
) 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 tspnet.connect() (on page 14-277
) for additional detail.