
Section 2: General operation
2606B System SourceMeter® Instrument Reference Manual
2-70
2606B-901-01 Rev. B / May 2018
Connecting the USB flash drive
The 2606B supports flash drives that comply with USB 2.0 standards, 1.0, and 1.1 standards. You
can save data to the USB flash drive from the virtual front panel, or you can create a script to save
data to the USB flash drive.
To connect the USB flash drive, plug the USB flash drive into the USB port on the instrument's front
panel (see the figure below).
Figure 37: USB-A location on Module 1
File system navigation
The 2606B can use commands from the Lua
fs
library to navigate and list files that are available on a
flash drive. These Lua commands are in the
fs
command group in the instrument.
The
fs
commands make the file system of any given node available to the entire TSP-Link
®
system.
For example, you can use the command
node[5].fs.readdir(".")
to read the contents of the
current working directory on node 5.
The root folder of the USB flash drive has the absolute path:
"/usb1/"
You can use either the slash (
/
) or backslash (
\
) as a directory separator. However, the backslash is
also used as an escape character, so if you use it as a directory separator, you will generally need to
use a double backslash (
\\
) when you are creating scripts or sending commands to the instrument.
The instrument supports the following Lua
fs
commands:
(on page 7-95)
(on page 7-96)
(on page 7-96)
(on page 7-96)
(on page 7-97)
The following Lua
fs
commands are not supported at this time:
fs.chmod()
fs.chown()
fs.stat()