Tspnet.readavailable(); Tspnet.reset() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Section 7: Command reference
Also see
tspnet.connect()

tspnet.readavailable()

tspnet.timeout
tspnet.write()
tspnet.readavailable()
This function checks to see if data is available from the remote device.
Type
TSP-Link accessible
Function
Yes
Usage
bytesAvailable = tspnet.readavailable(connectionID)
bytesAvailable
connectionID
Details
This command checks to see if any output data is available from the device. No data is read from the instrument.
This allows TSP scripts to continue to run without waiting on a remote command to finish.
Example
ID = tspnet.connect("192.0.2.1")
tspnet.write(ID, "*idn?\r\n")
repeat
bytes = tspnet.readavailable(ID)
until bytes > 0
print(tspnet.read(ID))
tspnet.disconnect(ID)
Also see
tspnet.connect()
tspnet.read()

tspnet.reset()

This function disconnects all TSP-Net sessions.
Type
TSP-Link accessible
Function
Yes
7-366
Model 2651A High Power System SourceMeter® Instrument Reference Manual
(on page 7-361)
(on page 7-366)
(on page 7-368)
(on page 7-371)
Affected by
The number of bytes available to be read from the connection
The connection ID returned from tspnet.connect()
(on page 7-361)
(on page 7-365)
Affected by
Where saved
Default value
Send commands that will create data.
Wait for data to be available.
Where saved
Default value
2651A-901-01 Rev. A / March 2011

Advertisement

Table of Contents
loading

Table of Contents