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 #429 background imageLoading...
Page #429 background image
Series 2600B
System SourceMeter® Instrument Reference Manual Section 7:
TSP command reference
2600BS-901-01 Rev. B / May 2013 7-89
fileVar:close()
This function closes the file that is represented by the fileVar variable.
Type TSP-Link accessible
Affected by Where saved Default value
Function No
Usage
fileVar:close()
fileVar
The file descriptor variable to close
Details
This command is equivalent to io.close(fileVar).
Note that files are automatically closed when the file descriptors are garbage collected.
Also see
fileVar:flush() (on page 7-89)
fileVar:read() (on page 7-90)
fileVar:seek() (on page 7-91)
fileVar:write() (on page 7-91)
io.close() (on page 7-106)
io.open() (on page 7-108)
fileVar:flush()
This function writes buffered data to a file.
Type TSP-Link accessible
Affected by Where saved Default value
Function No
Usage
fileVar:flush()
fileVar
The file descriptor variable to flush
Details
The fileVar:write() or io.write() functions buffer data, which may not be written immediately to the
USB flash drive. Use fileVar:flush() to flush this data. Using this function removes the need to close a file
after writing to it, allowing the file to be left open to write more data. Data may be lost if the file is not closed or
flushed before a script ends.
If there is going to be a time delay before more data is written to a file, and you want to keep the file open, flush
the file after you write to it to prevent loss of data.
Also see
fileVar:write() (on page 7-91)
io.open() (on page 7-108)
io.write() (on page 7-111)

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