EasyManuals Logo
Home>Keithley>Multimeter>3700 Series

Keithley 3700 Series User Manual

Keithley 3700 Series
936 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 #280 background imageLoading...
Page #280 background image
Series 3700A System Switch/Multimeter Reference Manual Section 9: Introduction to TSP operation
3700AS-901-01 Rev. D/June 2018 9-7
else
print("myfile1 did not open for write")
print("error string is " .. myfile1_err)
print("error number is " .. myfile1_errnum)
end
-- Open the three files again for reading.
myfile1, myfile1_err, myfile1_errnum = io.open("/usb1/myfile_io1", "r")
myfile2, myfile2_err, myfile2_errnum = io.open("/usb1/myfile_io2", "r")
myfile3, myfile3_err, myfile3_errnum = io.open("/usb1/myfile_io3", "r")
if (io.type(myfile1) == "file") then
if (io.type(myfile2) == "file") then
if (io.type(myfile3) == "file") then
-- Make myfile1 the default input file.
io.input(myfile1)
-- Read the default file.
filecontents = io.read("*a")
print("contents of myfile1 are:")
print(filecontents)
print()
-- Make myfile2 the default input file.
io.input(myfile2)
-- Read the default file.
filecontents = io.read("*a")
print("contents of myfile2 are:")
print(filecontents)
print()
-- Read myfile3 using file descriptor instead of io read.
filecontents = myfile3:read("*a")
print("contents of myfile3 are:")
print(filecontents)
print()
-- Use file descriptor close command rather than io close.
myfile1:close()
myfile2:close()
myfile3:close()
else
print("myfile3 did not open for read")
print("error string is " .. myfile3_err)
print("error number is " .. myfile3_errnum)
end
else
print("myfile2 did not open for read")
print("error string is " .. myfile2_err)
print("error number is " .. myfile2_errnum)
end
else
print("myfile1 did not open for read")
print("error string is " .. myfile1_err)
print("error number is " .. myfile1_errnum)
end
endscript

Table of Contents

Other manuals for Keithley 3700 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 3700 Series and is the answer not in the manual?

Keithley 3700 Series Specifications

General IconGeneral
BrandKeithley
Model3700 Series
CategoryMultimeter
LanguageEnglish

Related product manuals