Tektronix KEITHLEY SourceMeter 2606B Reference Manual page 497

Table of Contents

Advertisement

Section 15: TSP command reference
Details
All data parameters must be either strings or numbers.
Data is not immediately 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.
Example
local fileName = "/usb1/myfile.txt"
if fs.is_file(fileName) then
os.remove(fileName)
print("Removing file")
else
print("Nothing removed")
end
errorqueue.clear()
print("\n*** io.write")
myfile, myfile_err, myfile_errnum = io.open(fileName, "w")
myfile:write("Line 1")
myfile:close()
do
fileHandle = io.output(fileName)
io.write("Line 2")
end
io.close(fileHandle)
os.remove(fileName)
Writes data to the default output file.
Also see
io.flush()
(on page 15-117)
15-124
Model 2606B System SourceMeter® Instrument Reference Manual
2606B-901-01 Rev. C November 2021

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents