Io.type() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Section 7: Command reference
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.
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
Function
No
Usage
type = io.type(obj)
type
obj
Details
Returns the string "file" if the object is an open file handle. If it is not an open file handle, nil is returned.
7-102
Model 2651A High Power System SourceMeter® Instrument Reference Manual
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 current position; returns an empty string if it is at the end
of file
Returns the next line, skipping the end of line; returns nil if the current 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 current file position is at the end of file
Affected by
Indicates whether the object is an open file handle
Object to check
Where saved
Default value
2651A-901-01 Rev. A / March 2011

Advertisement

Table of Contents
loading

Table of Contents