EasyManuals Logo
Home>Keithley>Measuring Instruments>2614B

Keithley 2614B Reference Manual

Keithley 2614B
864 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 #430 background imageLoading...
Page #430 background image
Section
7: TSP command reference Series 2600B System SourceMeter® Instrument
Reference Manual
7-90 2600BS-901-01 Rev. B / May 2013
fileVar:read()
This function reads data from a file.
Type TSP-Link accessible
Affected by Where saved Default value
Function
No
Usage
data1 = fileVar:read()
data1 = fileVar:read(format1)
data1, data2 = fileVar:read(format1, format2)
data1, ..., datan = fileVar:read(format1, ..., formatn)
data1
First data read from the file
data2
Second data read from the file
datan
Last data read from the file
fileVar
The descriptor of the file to be read
format1
A string or number indicating the first type of data to be read
format2
A string or number indicating the second type of data to be read
formatn
A string or number indicating the last 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:
"*n": Returns a number.
"*a": Returns the whole file, starting at the current position (returns an empty string if the current file position is
at the end of the 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; returns nil if the current file
position is at the end of file.
If no format parameters are provided, the function will perform as if the function is passed the value "*l".
Any number of format parameters may be passed to this command, each corresponding to a returned data
value.
Also see
fileVar:write() (on page 7-91)
io.input() (on page 7-108)
io.open() (on page 7-108)

Table of Contents

Other manuals for Keithley 2614B

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 2614B and is the answer not in the manual?

Keithley 2614B Specifications

General IconGeneral
BrandKeithley
Model2614B
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals