Model 2651A High Power System SourceMeter® Instrument Reference Manual
Section 5: Remote commands
2651A-901-01 Rev. A / March 2011
5-7
File I/O
You can use the file I/O commands to open, close, write data, or to read a file on an installed USB
flash drive. File I/O commands are organized into two groups:
•
Commands that reside in the
fs
and
io
table, for example:
io.open()
,
io.close()
,
io.input()
, and
io.output()
. These commands are responsible for managing file system
directories; opening and closing file descriptors; and performing basic I/O operations on a pair of
default files, one input and one output.
•
Commands that reside in the file descriptors themselves (for example:
fileVar
:seek()
,
fileVar
:write()
, and
fileVar
:read()
) operate exclusively on the file with which they are
associated.
The root folder of the USB flash drive has the absolute path:
"/usb1/"
NOTE
Both slash (/) and backslash (\) are supported as directory separators.
For basic information on navigation and directory listing of files on a flash drive, see
(on page 2-64).
NOTE
File descriptor commands for file I/O use a colon (:) to separate the command parts rather than a
period (.) like the
io
commands.