Model 2651A High Power System SourceMeter® Instrument Reference Manual
Section 7: Command reference
2651A-901-01 Rev. A / March 2011
7-83
Also see
(on page 7-83)
(on page 7-84)
(on page 7-85)
(on page 7-100)
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 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
(on page 7-85)
(on page 7-100)
(on page 7-103)
fileVar:read()
This function reads data from a file.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function No