Download Print this page

Tektronix KEITHLEY System SourceMeter 2636B Reference Manual page 483

Advertisement

Series 2600B System SourceMeter® Instrument Reference Manual
io.flush()
This function saves buffered data to a file.
Type
TSP-Link accessible
Function
Yes
Usage
io.flush()
Details
You must use the io.flush() or io.close() functions to write data to the file system.
Data is not automatically written to a file when you use the io.write() function. The io.write()
function buffers data; it may not be written to the USB flash drive immediately. Use the io.flush()
function to immediately write buffered data to the drive.
This function only flushes the default output file.
Using this command removes the need to close a file after writing to it and allows it to be left open to
write more data. Data may be lost if the file is not closed or flushed before an application ends. To
prevent the loss of data if there is going to be a time delay before more data is written (and when you
want to keep the file open and not close it), flush the file after writing to it.
Also see
fileVar:flush()
fileVar:write()
io.write()
(on page 11-119)
io.input()
This function assigns a previously opened file, or opens a new file, as the default input file.
Type
TSP-Link accessible
Function
Yes (see Details)
Usage
fileVar = io.input()
fileVar = io.input("newfile")
fileVar
newfile
2600BS-901-01 Rev. E / January 2019
Affected by
(on page 11-95)
(on page 11-97)
Affected by
The descriptor of the input file or an error message (if the function fails)
A string representing the path of a file to open as the default input file, or the
file descriptor of an open file to use as the default input file
Section 11: TSP command reference
Where saved
Default value
Where saved
Default value
11-115

Advertisement

loading
Need help?

Need help?

Do you have a question about the KEITHLEY System SourceMeter 2636B and is the answer not in the manual?

Subscribe to Our Youtube Channel