Io.output(); Io.read() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual
Details
The path to the file to open may be absolute or relative to the current working directory.
If an error is encountered, the command returns nil and an error string.
Example
testFile, testError = io.open("testfile.txt","w")
if testError == nil then
testFile:write("This is my test file")
end
io.close(testFile)
Also see
io.close()
(on page 7-99)

io.output()

This function assigns a previously opened file, or opens a new file, as the default output file.
Type
TSP-Link accessible
Function
Yes (see Details)
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
descriptor parameter and does not return a value.
If the function fails, an error message will be returned.
Also see
io.input()
(on page 7-100)
io.open()
(on page 7-100)

io.read()

This function reads data from the default input file.
Type
TSP-Link accessible
Function
Yes
2651A-901-01 Rev. A / March 2011
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
Affected by
Where saved
Default value
®
network, this command does not accept a file
Where saved
Default value
Section 7: Command reference
7-101

Advertisement

Table of Contents
loading

Table of Contents