Section 14: TSP 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
No
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)
Send commands that will create data.
Wait for data to be available.
Also see
tspnet.connect()
tspnet.read()
(on page 14-281)
14-282
(on page 14-277)
(on page 14-282)
(on page 14-284)
(on page 14-287)
Affected by
The number of bytes available to be read from the connection
The connection ID returned from tspnet.connect()
(on page 14-277)
2470 High Voltage SourceMeter Instrument Reference Manual
Where saved
Default value
2470-901-01 Rev. A / May 2019
Need help?
Do you have a question about the Keithley SourceMeter 2470 and is the answer not in the manual?