Remote control commands
R&S
®
AREG800A
272
User Manual 1179.3615.02 ─ 01
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"
11.10.3
Programming examples
Example: Saving and loading current settings
This example shows two ways of how to save the current instrument setting in the file
settings.savrcltxt
in the directory
/var/user/savrcl
.
Before the instrument settings can be saved in a file, they have to be saved 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>
.
// Save the current settings in an intermediate memory with number 4
*SAV 4
// save the settings in a file in a
specific
directory;
// the complete path has to be specyfied
MMEMory:STORe:STATe 4,"/var/user/savrcl/settings.savrcltxt"
// save the settings in a file in the
default
directory;
// set the default directory; specify only the file name
MMEMory:CDIRectory "/var/user/savrcl"
*SAV 4
MMEMory subsystem