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 #719 background imageLoading...
Page #719 background image
2470
High Voltage SourceMeter Instrument Reference Manual Section 14:
TSP command reference
2470-901-01 Rev. A / May 2019 14-79
file.open()
This function opens a file on the USB flash drive for later reference.
Type TSP-Link accessible
Affected by Where saved Default value
Function
No
Usage
fileNumber = file.open("fileName", accessType)
fileNumber
A number identifying the open file that you use with other file commands to write,
read, flush, or close the file after opening
fileName
A string that contains the file name to open, including the full path of file
accessType
The type of action to do:
ï‚§ Append the file: file.MODE_APPEND
ï‚§ Read the file: file.MODE_READ
ï‚§ Write to the file:
file.MODE_WRITE
Details
The path to the file to open must be absolute.
The root folder of the USB flash drive has the following absolute path:
"/usb1/"
Example
file_num = file.open("/usb1/testfile.txt", file.MODE_WRITE)
if file_num != nil then
file.write(file_num, "This is my test file")
file.close(file_num)
end
Opens file testfile.txt for writing. If no errors were found while opening, writes This is my test file
and closes 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