1-22 Return to Section Topics 2600AS-901-01 Rev. B / September 2008
Section 1: Getting Started Series 2600A System SourceMeter® Instruments Reference Manual
Figure 1-5
USB port
Using the file system
File system navigation
The Lua fs library provides the command set necessary to navigate the file system and list the
available files on a flash drive. The instrument encapsulates this command set as an fs logical
instrument, so that the file system of any given node is 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
Error and status messages
Error and status messages briefly displayed. During operation and programming, you will
encounter a number of front panel messages. Typical messages are either status or error
notifications, as listed in
Appendix A.
Messages, both status and error, are held in queues. For information on retrieving error messages
from queues, refer to
Appendix C.