User manual

Section 10: TSP-Net Series 3700 System Switch/Multimeter Reference Manual
10-2 3700S-901-01 Rev. C / July 2008
Using TSP-NetTM with any Ethernet-enabled device
NOTE Refer to the Instrument Control Library (ICL) (on page 12-1) for more
details on the commands presented in this section.
To communicate to a remote Ethernet-enabled device from the Series 3700,
perform the following steps:
1. Connect to the remote device through the LAN port.
Use an Ethernet crossover cable to connect directly from the Series 3700 to
an Ethernet-enabled device.
Use a straight-through Ethernet cable and a hub to connect the Series 3700
to any other device on the LAN.
2. Establish a new connection to a remote device at a specific IP address
using tspnet.connect() (on page 10-5). For non-TSP
TM
-enabled
devices, you must also provide the port number, or the Series 3700
assumes the remote device to be TSP-capable and enables TSP prompts
and error handling.
If the Series 3700 is not able to make a connection to the remote device, it
generates a timeout error. Use tsp.timeout to set the timeout value. The
default timeout value is 20 seconds.
NOTE Set tspnet.tsp.abortonconnect (on page 10-14) to TRUE
to abort any script currently running on a remote TSP device.
3. Use tspnet.write() (on page 10-7) or tspnet.execute() (on page
10-6) to send strings to a remote device. Using tspnet.write() sends
strings to the device exactly as indicated, and you must supply any needed
termination characters or other lines. Use tspnet.termination() (on
page 10-11) to specify the termination character. If you use
tspnet.execute() (on page 10-6) instead, the Series 3700 appends
termination characters to all strings sent to the command.
4. Retrieve responses from the remote device using tspnet.read() (on
page 10-8). The Series 3700 suspends operation until data is available or a
timeout error is generated. You can check if data is available from the
remote device using tspnet.readavailable() (on page 10-9).
Disconnect from the remote device using tspnet.disconnect() (on page
10-10). Terminate all remote connections using tspnet.reset() (on page 10-
10).