Section 9: TSP command reference Series 2600B System SourceMeter® instrument Reference Manual
9-404 2600BS-901-01 Rev. F/August 2021
tspnet.readavailable()
This function checks to see if data is available from the remote device.
Usage
bytesAvailable = tspnet.readavailable(connectionID)
The number of bytes available to be read from the connection
The connection ID returned from tspnet.connect()
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 create data.
Wait for data to be available.
Also see
tspnet.connect() (on page 9-399)
tspnet.read() (on page 9-403)
tspnet.reset()
This function disconnects all TSP-Net sessions.
Usage
tspnet.reset()
Details
This command disconnects all remote instruments connected through TSP-Net. For TSP-enabled
devices, this causes any commands or scripts running remotely to be terminated.
Also see
None