
19-68
Return to
2600AS-901-01 Rev. B / September 2008
Section 19: Remote Commands
Series 2600A System SourceMeter® Instruments Reference Manual
io.type
Function
Checks whether or not a given object is a file handle.
TSP-Link
accessibility
This function cannot be accessed from a remote TSP-Link node.
Usage
type = io.type(obj)
obj
Object to check.
type
Indicates whether the object is an open file handle.
Remarks
• Returns the string
“file”
if the object is an open file handle. Otherwise,
nil
is returned.
io.write
Function
Write data to the default output file.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage
io.write()
io.write(data1)
io.write(data1, data2)
io.write(data1, ..., datan)
data1
The data to be written.
data2
The data to be written.
datan
The data to be written.
Remarks
• All data parameters must be either strings or numbers.
• This command does not immediately write the data to the physical media. It may buffer the data
and write it when the file is closed via the
io.close
command. To force the buffered data to be
written before closing the file, call
io.flush
.