Remote Control Commands
R&S
®
SMW200A
777User Manual 1175.6632.02 ─ 16
13.7.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.
(See Example "Store the user settings in a file in a specific directory"
on page 777).
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 SMW 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 778).
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.7.3, "Pro-
gramming Examples", on page 778 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 780.
Example: Store the user settings in a file in a specific directory
This example uses the commands for storing and loading files with custom digital mod-
ulation settings. Working with the files of other subsystems or files containing the set-
tings of a particular digital standard (e.g. SOURce:BB:EUTRa:SETTing:...), is ana-
logical.
We assume that the directory /var/user/DigMod is existing and contains the files
SaveRecallTest.dm and dmSavRcl.dm.
// Set the default directory first
MMEMory:CDIRectory "/var/user/DigMod"
SOURce1:BB:DM:SETTing:CATalog?
// "SaveRecallTest","dmSavRcl"
// Specify only the file name; the extenssion *.dm is assigned automatically
SOURce1:BB:DM:SETTing:STORe "dmSettings"
SOURce1:BB:DM:SETTing:DELete "dmSavRcl"
SOURce1:BB:DM:SETTing:LOAD "SaveRecallTest"
SOURce1:BB:DM:SETTing:CATalog?
// "SaveRecallTest","dmSettings"
MMEMory Subsystem