
Remote Control Commands
R&S
®
AREG100A
210
User Manual 1178.7417.02 ─ 04
9.9.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
AREG100A 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
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
on page 210 explains the general working principle with the
commands for mass memory storage.
The same rule applies to the
/var/volatile
directory, see
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
.
9.9.3
Programming Examples
Example: Storing and loading current settings
This example shows two ways of how to store the current instrument setting in the file
settings.savrcltxt
in the directory
/var/user/savrcl
.
Before the instrument settings can be stored in a file, they have to be stored in an inter-
mediate memory using common command
*SAV <number>
. The specified number is
command.
Also, after loading a file with instrument settings with command
, these settings have to be activated with the common command
*RCL
<number>
.
MMEMory Subsystem