EasyManua.ls Logo

Keithley 2450

Keithley 2450
878 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Model 2450
Interactive SourceMeter® Instrument Reference Manual Section 8: TSP comman
d reference
2450-901-01 Rev. B/September 2013 8-237
Details
This function clears any pending output data from the device. No data is returned to the caller and no data is
processed.
Example
tspnet.write(testdevice, "print([[hello]])")
print(tspnet.readavailable(testdevice))
tspnet.clear(testdevice)
print(tspnet.readavailable(testdevice))
Write data to a device, then print how much is
available.
Output:
6.00000e+00
Clear data and print how much data is
available again.
Output:
0.00000e+00
Also see
tspnet.connect() (on page 8-237)
tspnet.readavailable() (on page 8-242)
tspnet.write() (on page 8-248)
tspnet.connect()
This function establishes a network connection with another LAN instrument or device through the LAN interface.
Type TSP-Link accessible
Affected by Where saved Default value
Function
No
Usage
connectionID = tspnet.connect(ipAddress)
connectionID = tspnet.connect(ipAddress, portNumber, initString)
connectionID
The connection ID to be used as a handle in all other tspnet function calls
ipAddress
IP address to which to connect in a string
portNumber
Port number (default 5025)
initString
Initialization string to send to ipAddress
Details
This command connects a device to another device through the LAN interface. If the portNumber is 23, the
interface uses the Telnet protocol and sets appropriate termination characters to communicate with the device.
If a portNumber and initString are provided, it is assumed that the remote device is not TSP-enabled. The
Model 2450 does not perform any extra processing, prompt handling, error handling, or sending of commands. In
addition, the tspnet.tsp.* commands cannot be used on devices that are not TSP-enabled.

Table of Contents

Other manuals for Keithley 2450

Related product manuals