Filevar:flush(); Filevar:read() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual
Also see

fileVar:flush()

fileVar:read()

fileVar:seek()
fileVar:write()
io.close()
(on page 7-99)
io.open()
(on page 7-100)
fileVar:flush()
This function writes buffered data to a file.
Type
TSP-Link accessible
Function
No
Usage
fileVar:flush()
fileVar
Details
The fileVar:write() or io.write() functions buffer data, which may not be written immediately to the
USB flash drive. Use this function to flush this data. Using this function removes the need to close a file after
writing to it, allowing it 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()
io.open()
(on page 7-100)
io.write()
(on page 7-103)
fileVar:read()
This function reads data from a file.
Type
TSP-Link accessible
Function
No
2651A-901-01 Rev. A / March 2011
(on page 7-83)
(on page 7-83)
(on page 7-84)
(on page 7-85)
Affected by
The file descriptor variable to flush
(on page 7-85)
Affected by
Where saved
Default value
Where saved
Default value
Section 7: Command reference
7-83

Advertisement

Table of Contents
loading

Table of Contents