Io.input(); Io.open() - Keithley 2651A Reference Manual

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

Advertisement

Section 7: Command reference
Also see
fileVar:flush()
fileVar:write()
io.write()
(on page 7-103)

io.input()

This function assigns a previously opened file, or opens a new file, as the default input file.
Type
TSP-Link accessible
Function
Yes (see Details)
Usage
fileVar = io.input()
fileVar = io.input(newfile)
fileVar
newfile
Details
The newfile path may be absolute or relative to the current working directory.
When using this function from a remote TSP-Link
does not return a value.
If the function fails, an error message will be returned.
Also see

io.open()

(on page 7-100)
io.output()
(on page 7-101)
io.open()
This function opens a file for later reference.
Type
TSP-Link accessible
Function
No
Usage
fileVar, errorMsg = io.open(path)
fileVar, errorMsg = io.open(path, mode)
fileVar
errorMsg
path
mode
7-100
Model 2651A High Power System SourceMeter® Instrument Reference Manual
(on page 7-83)
(on page 7-85)
Affected by
The descriptor of the input file or an error message (if the function fails)
A string representing the path of a file to open as the default input file, or the
file descriptor of an open file to use as the default input file
Affected by
The descriptor of the opened file
Indicates whether an error was encountered while processing the
function
The path of the file to open
A string representing the intended access mode ("r" = read,
"w" = write, and "a" = append)
Where saved
Default value
®
node, this command does not accept a file descriptor and
Where saved
Default value
2651A-901-01 Rev. A / March 2011

Advertisement

Table of Contents
loading

Table of Contents