EasyManuals Logo

Keithley 2651A Reference Manual

Keithley 2651A
800 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #410 background imageLoading...
Page #410 background image
Section 7: Command reference Model 2651A High Power System SourceMeter® Instrument Reference Manual
7-102 2651A-901-01 Rev. A / March 2011
Usage
data1 = io.read()
data1 = io.read(format1)
data1, data2 = io.read(format1, format2)
data1, ..., dataN = io.read(format1, ..., formatN)
data1
The data read from the file
data2
The data read from the file
dataN
The data read from the file; the number of return values matches the number
of format values given
format1
A string or number indicating the type of data to be read
format2
A string or number indicating the type of data to be read
formatN
A string or number indicating the type of data to be read
...
One or more entries (or values) separated by commas
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 current 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 current 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 current 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.

Table of Contents

Other manuals for Keithley 2651A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 2651A and is the answer not in the manual?

Keithley 2651A Specifications

General IconGeneral
BrandKeithley
Model2651A
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals