EasyManuals Logo
Home>Keithley>Measuring Instruments>2611B

Keithley 2611B Reference Manual

Keithley 2611B
864 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 #449 background imageLoading...
Page #449 background image
Se
ries 2600B System SourceMeter® Instrument Reference Manual Section 7:
TSP command reference
2600BS-901-01 Rev. B / May 2013 7-109
Example
testFile, testError = io.open("testfile.txt", "w")
if testError == nil 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.close() (on page 7-106)
io.output()
This function assigns a previously opened file or opens a new file as the default output file.
Type TSP-Link accessible Affected by Where saved Default value
Function
Yes (see Details)
Usage
fileVar = io.output()
fileVar = io.output(newfile)
fileVar
The descriptor of the output file or an error message (if the function fails)
newfile
A file descriptor to assign (or the path of a file to open) as the default output
file
Details
The path of the file to open may be absolute or relative to the current working directory.
When accessed from a remote node using the TSP-Link network, this command does not accept a file descriptor
parameter and does not return a value.
If the function fails, an error message is returned.
Also see
io.input() (on page 7-108)
io.open() (on page 7-108)
io.read()
This function reads data from the default input file.
Type TSP-Link accessible Affected by Where saved Default value
Function
Yes

Table of Contents

Other manuals for Keithley 2611B

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 2611B and is the answer not in the manual?

Keithley 2611B Specifications

General IconGeneral
BrandKeithley
Model2611B
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals