Section 7: TSP command reference
io.read()
This function reads data from the default input file.
Type
TSP-Link accessible
Function
Yes
Usage
data1 = io.read()
data1 = io.read("format1")
data1, data2 = io.read("format1", "format2")
data1, ..., dataN = io.read("format1", ..., "formatN")
data1
data2
dataN
format1
format2
formatN
...
Details
The format parameters may be any of the following:
Format parameter
"*n"
"*a"
"*l"
N
Any number of format parameters may be passed to this command, each corresponding to a returned
data value.
7-134
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Affected by
The data read from the file
The data read from the file
The data read from the file; the number of return values matches the number of
format values given
A string or number indicating the type of data to be read
A string or number indicating the type of data to be read
A string or number indicating the type of data to be read
One or more entries (or values) separated by commas
Description
Returns a number
Returns the whole file, starting at the present position; returns an empty string if it is at
the end of file
Default setting; returns the next line, skipping the end of line; returns nil if the present
file position is at the end of file
Returns a string with up to N characters; returns an empty string if N is zero (0); returns
nil if the present file position is at the end of file
Where saved
Default value
2651A-901-01 Rev. C October 2021
Need help?
Do you have a question about the Keithley 2651A and is the answer not in the manual?