EasyManuals Logo

Keithley 2657A User Manual

Keithley 2657A
805 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 #417 background imageLoading...
Page #417 background image
Section 7: TSP command reference Model 2657A High Power System SourceMeter® Instrument Reference Manual
7-104 2657A-901-01 Rev. B/December 2012
Details
If a file is not specified, the default output file closes.
Only io.close(), used without specifying a parameter, can be accessed from a remote node.
Example
testFile, testError = io.open("testfile.txt", "w")
if nil == testError then
testFile:write("This is my test file")
io.close(testFile)
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
io.open() (on page 7-105)
io.flush()
This function saves buffered data to a file.
Type TSP-Link accessible Affected by Where saved Default value
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 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() (on page 7-88)
fileVar:write()
(on page 7-90)
io.write()
(on page 7-107)
io.input()
This function assigns a previously opened file, or opens a new file, as the default input file.
Type TSP-Link accessible Affected by Where saved Default value
Function Yes (see Details)
NOTE

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 2657A and is the answer not in the manual?

Keithley 2657A Specifications

General IconGeneral
BrandKeithley
Model2657A
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals