Io.input() - Keithley 3700A Series Reference Manual

System switch/multimeter
Hide thumbs Also See for 3700A Series:
Table of Contents

Advertisement

Section 11: TSP command reference
Using this command removes the need to close a file after writing to it and allows it to be left open to
write more data. Data may be lost if the file is not closed or flushed before an application ends. To
prevent the loss of data if there is going to be a time delay before more data is written (and when you
want to keep the file open and not close it), flush the file after writing to it.
Also see
Script examples
fileVar:flush()
fileVar:write()
io.write()
(on page 11-257)

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
descriptor and does not return a value.
If the function fails, an error message is returned.
Also see
Script examples
io.open()
(on page 11-255)
io.output()
(on page 11-255)
11-254
(on page 9-5)
(on page 11-242)
(on page 11-245)
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
(on page 9-5)
Series 3700A System Switch/Multimeter Reference Manual
Where saved
Default value
®
node, this command does not accept a file
3700AS-901-01 Rev. D/June 2018

Advertisement

Table of Contents
loading

Table of Contents