Remote Control Commands
R&S
®
SMA100B
414User Manual 1178.3834.02 ─ 05
13.5.2 Accessing Files in the Default or in a Specified Directory
For better overview and easy file handling, you may not save all user files in the user
directory /var/user but rater organize them into subdirectories.
The command syntax defines two general ways to access files with user data in a spe-
cific directory:
●
Change the current default directory for mass memory storage and then directly
access the files in this default directory, like stored list files, files with user data or
save/recall files.
The subsequent commands for file handling (select, delete, read out files in the
directory, etc.) require only specification of the filename. File extension can be
omitted; after syntax evaluation of the used command, the R&S SMA100B filters
out the relevant files.
●
Define the absolute file path, including the user directory /var/user, created
subdirectories and filename (see Example "Load file with user data from a specific
directory" on page 414).
As a rule, whenever an absolute file path is determined, it overwrites a previously
specified default directory.
The following example explains this rule as a principle. Exceptions of this general rule
are stated in the description of the corresponding command. The Chapter 13.5.3, "Pro-
gramming Examples", on page 415 explains the general working principle with the
commands for mass memory storage.
The same rule applies to the /var/volatile directory, see Example "Working with
files in the volatile memory" on page 416.
Example: Load file with user data from a specific directory
This example shows the principle of file handling in remote environment by using list
commands. Working with the files of other subsystems is analogical. We assume that
the directory /var/user/my_files is existing and contains the files
list_test.lsw and list_2.lsw.
//Query files in the user diectory
SOURce1:LIST:CATalog?
// -
// no files
// Set the default directory
MMEMory:CDIRectory "/var/user/my_files"
SOURce1:LIST:CATalog?
// "list_test","list_2"
// Specify the complete path to select a list file (*.lsw)
// in the specific directory
SOURce1:LIST:SELect "/var/user/my_files/list_test"
SOURce1:LIST:DELete "/var/user/my_files/list_2"
MMEMory Subsystem