Tspnet.readavailable() - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Series 2600B System SourceMeter® Instrument Reference Manual
Details
This command reads available data from the remote instrument and returns responses for the specified number
of arguments.
The format string can contain the following specifiers:
%[width]s
%[max width]t
%[max width]n
%d
A maximum of 10 format specifiers can be used for a maximum of 10 return values.
If formatString is not provided, the command returns a string that contains the data until a new line is
reached. If no data is available, the Series 2600B pauses operation until the requested data is available or until a
timeout error is generated. Use tspnet.timeout to specify the timeout period.
When the Series 2600B reads from a TSP-enabled remote instrument, the Series 2600B removes Test Script
Processor (TSP
The Series 2600B prefaces errors from the remote device with "Remote Error," followed by the error number
and error description.
Example
tspnet.write(deviceID, "*idn?\r\n")
print("write/read returns:", tspnet.read(deviceID))
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.
2600BS-901-01 Rev. B / May 2013
Read data until the specified length
Read data until the specified length or until punctuation is found, whichever comes first
Read data until a newline or carriage return
Read a number (delimited by punctuation)
®
) prompts and places any errors it receives from the remote instrument into its own error queue.
(on page 7-367)
(on page 7-371)
(on page 7-373)
(on page 7-376)
Affected by
The number of bytes available to be read from the connection
The connection ID returned from tspnet.connect()
Section 7: TSP command reference
Send the "*idn?\r\n" message to
the instrument connected as
deviceID.
Display the response that is read from
deviceID (based on the *idn?
message).
Where saved
Default value
7-371

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents