Using Tsp-Net With Any Ethernet-Enabled Device - Keithley 708B Reference Manual

Switching matrix
Hide thumbs Also See for 708B:
Table of Contents

Advertisement

Section 6: Instrument programming

Using TSP-Net with any Ethernet-enabled device

Refer to the
the commands presented in this section.
To communicate to a remote Ethernet-enabled device from the Model 707B or 708B, perform
the following steps:
1. Connect to the remote device through the LAN port. If you are connecting:
Directly from the Model 707B or 708B to an Ethernet-enabled device: Use an Ethernet crossover cable.
The Model 707B or 708B to any other device on the LAN: Use a straight-through Ethernet cable and a
hub.
2. Establish a new connection to a remote device at a specific IP address using
tspnet.connect().
3. If the device is not TSP-enabled, you must also provide the port number. If not, the Model 707B
or 708B assumes the remote device is TSP-enabled and enables TSP prompts and error
handling.
If the Model 707B or 708B is not able to make a connection to the remote device, it generates a
timeout error. Use tspnet.timeout to set the timeout value. The default timeout value is 20
seconds.
Set tspnet.tsp.abortonconnect to 1 to abort any script currently running on a remote TSP
device.
4. Use tspnet.write() or tspnet.execute() to send strings to a remote device.
tspnet.write() sends strings to the device exactly as indicated, and you must supply any
needed termination characters or other lines. Use tspnet.termination() to specify the
termination character. If you use tspnet.execute() instead, the Model 707B or 708B appends
termination characters to all strings sent to the command.
5. Retrieve responses from the remote device using tspnet.read(). The Model 707B or 708B
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().
Disconnect from the remote device using tspnet.disconnect(). Terminate all remote
connections using tspnet.reset().
6-56
Instrument Control Library (ICL) command reference
Models 707B and 708B Switching Matrix Reference Manual
NOTE
(on page 7-8) for more details on
NOTE
707B-901-01 Rev. A / August 2010

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents