Series 3700A System Switch/Multimeter Reference Manual Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018 11-257
Also see
fileVar:read() (on page 11-243)
Script examples (on page 9-5)
io.type()
This function checks whether or not a given object is a file handle.
Usage
type = io.type(obj)
Indicates whether the object is an open file handle
Details
Returns the string "file" if the object is an open file handle. If it is not an open file handle, nil is
returned.
Also see
Script examples (on page 9-5)
io.open() (on page 11-255)
io.write()
This function writes data to the default output file.
Usage
io.write()
io.write(data1)
io.write(data1, data2)
io.write(data1, ..., dataN)
One or more values separated by commas
Details
All data parameters must be either strings or numbers.
Data is not immediately written to a file when you use the io.write() function. The io.write()
function buffers data; it may not be written to the USB flash drive immediately. Use the io.flush()
function to immediately write buffered data to the drive.