EasyManuals Logo

Tektronix Keithley SourceMeter 2470 Reference Manual

Tektronix Keithley SourceMeter 2470
995 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 #720 background imageLoading...
Page #720 background image
Section
14: TSP command reference 2470 High Voltage SourceMeter Instrument
Reference Manual
14-80 2470-901-01 Rev. A / May 2019
file.read()
This function reads data from a file on the USB flash drive.
Type TSP-Link accessible
Affected by Where saved Default value
Function
No
Usage
fileContents = file.read(fileNumber, readAction)
fileContents
The contents of the file based on the readAction parameter
fileNumber
The file number returned from the file.open() function to read
readAction
The action:
ï‚§ Return the next line; returns nil if the present file position is at the end of the
file: file.READ_LINE
ï‚§ Return a string that represents the number found; returns an event string if no
number was found; returns nil if the current file position is at the end of file:
file.READ_NUMBER
ï‚§ Return the whole file, starting at the present position; returns nil if the present
file position is at the end of the file:
file.READ_ALL
Details
This command reads data from a file.
Example
file_num = file.open("/usb1/testfile.txt", file.MODE_READ)
if file_num != nil then
file_contents = file.read(file_num, file.READ_ALL)
file.close(file_num)
end
Open testfile.txt on the USB flash drive for reading. If it opens successfully, read the entire contents of
the file and store it in variable file_contents.
Close the file.
Also see
None

Table of Contents

Other manuals for Tektronix Keithley SourceMeter 2470

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix Keithley SourceMeter 2470 and is the answer not in the manual?

Tektronix Keithley SourceMeter 2470 Specifications

General IconGeneral
BrandTektronix
ModelKeithley SourceMeter 2470
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals