Io.output(); Io.read() - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Series 2600B System SourceMeter® Instrument Reference Manual
Example
testFile, testError = io.open("testfile.txt", "w")
if testError == nil then
testFile:write("This is my test file")
io.close(testFile)
end
Also see
io.close()

io.output()

This function assigns a previously opened file or opens a new file as the default output file.
Type
TSP-Link accessible
Yes (see Details)
Function
Usage
fileVar = io.output()
fileVar = io.output(newfile)
fileVar
newfile
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()
io.open()

io.read()

This function reads data from the default input file.
Type
TSP-Link accessible
Function
Yes
2600BS-901-01 Rev. B / May 2013
(on page 7-106)
Affected by
The descriptor of the output file or an error message (if the function fails)
A file descriptor to assign (or the path of a file to open) as the default output
file
(on page 7-108)
(on page 7-108)
Affected by
Section 7: TSP command reference
Opens file testfile.txt for
writing. If no errors were found
while opening, writes "This is
my test file" and closes the
file.
Where saved
Default value
Where saved
Default value
7-109

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents