Section 6: Instrument programming
Series 2600B System SourceMeter® Instrument Reference Manual
6-60
2600BS-901-01 Rev. B / May 2013
TSP-Net capabilities
The TSP-Net library permits the Series 2600B to control a remote instrument through the LAN port for
both Test Script Processor (TSP
®
) and non-TSP instruments. Using TSP-Net library methods, you
can transfer string data to and from a remote instrument, transfer and format data into Lua variables,
and clear input buffers. The TSP-Net library is only accessible using commands from a remote
command interface.
You can use TSP-Net commands to communicate with any ethernet-enabled instrument. However,
specific TSP-Net commands exist for TSP-enabled instruments to allow for support of features unique
to the TSP scripting engine. These features include script downloads, reading buffer access, wait
completion, and handling of TSP scripting engine prompts.
Using TSP-Net commands with TSP-enabled instruments, a Series 2600B can download a script to
another TSP-enabled instrument and have both instruments run scripts independently. The Series
2600B 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 Series 2600B.
Using TSP-Net with any ethernet instrument
Refer to
TSP command reference
(on page 7-1) for details about the commands presented in this
section.
The Series 2600B has Auto-MDIX, so you can use either a LAN crossover cable or a LAN straight-
through cable to connect directly from the Series 2600B to an ethernet device or to a hub.
To set up communication to a remote ethernet 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 will be 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 of the remote instrument.
See
tspnet.connect()
(on page 7-367) for additional detail.
Summary of Contents for System SourceMeter 2601B
Page 841: ......