Section 2: General operation
Model 2651A High Power System SourceMeter® Instrument Reference Manual
2-64
2651A-901-01 Rev. A / March 2011
Figure 25: USB port
Meter ®
File system navigation
Use supported commands from the Lua
fs
library to navigate and list available files on a flash drive.
The instrument encapsulates this set of commands as an
fs
logical instrument. This makes the file
system of any given node available to the entire TSP-Link
®
system. For example, the command
node[5].fs.readdir(".")
can be used to read the contents of the current working directory on
node 5.
To allow for future enhancements, the root folder of the USB flash drive has the absolute path:
"/usb1/"
NOTE
Both slash (
/
) and backslash (
\
) are supported as directory separators.
The following Lua
fs
commands, which support basic navigation and directory listing, are included for
your reference:
fs.chdir
fs.cwd
fs.is_dir
fs.is_file
fs.mkdir
fs.readdir
fs.rmdir
The following Lua
fs
commands are not supported at this time:
fs.chmod
fs.chown
fs.stat