![Keithley SourceMeter 2600B Series Reference Manual Download Page 460](http://html2.mh-extra.com/html/keithley/sourcemeter-2600b-series/sourcemeter-2600b-series_reference-manual_4085220460.webp)
Series 2600B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2600BS-901-01 Rev. C / August 2016
7-121
Details
The format parameters may be any of the following:
Format parameter
Description
"*N"
Returns a number
"*a"
Returns the whole file, starting at the present position; returns an empty string if it is at the
end of file
"*l"
Returns the next line, skipping the end of line; returns
nil
if the present file position is at the
end of file
N
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
Any number of format parameters may be passed to this command, each corresponding to a returned
data value.
If no format parameters are provided, the function will perform as if the function was passed the value
"*l"
.
Also see
None
io.type()
This function checks whether or not a given object is a file handle.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
type
= io.type(
obj
)
type
Indicates whether the object is an open file handle
obj
Object to check
Details
Returns the string
"file"
if the object is an open file handle. If it is not an open file handle,
nil
is
returned.
Also see
(on page 7-119)
io.write()
This function writes data to the default output file.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes