EasyManua.ls Logo

Rohde & Schwarz SMAB-B92 - Programming Examples

Rohde & Schwarz SMAB-B92
778 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Remote Control Commands
R&S
®
SMA100B
415User Manual 1178.3834.02 ─ 05
13.5.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
then used in the :MMEMory:STORe:STATe command.
Also, after loading a file with instrument settings with command :MMEMory:LOAD:
STATe, these settings have to be activated with the common command *RCL
<number>.
// Store the current settings in an intermediate memory with number 4
*SAV 4
// store 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"
// store 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:STORe:STATe 4,"settings.savrcltxt"
// Load the stored settings in the intermediate memory 4 and activate them
MMEMory:LOAD:STATe 4,"/var/user/settings.savrcltxt"
*RCL 4
Example: Working with files and directories
This example shows how to list files in a directory, list the subdirectories, query the
number of files in a directory, create directory, rename and delete files.
// Query the current default directory for mass storage,
// change the directory to the default user directory "/var/user"
// and read out the files in it
MMEMory:CDIRectory?
// "/var/user/temp"
MMEMory:CDIRectory
MMEMory:CDIRectory?
// "/var/user/"
MMEMory:CATalog?
// 1282630,8102817792,".,DIR,4096","..,DIR,4096","Log,DIR,4096",
// "settings.savrcltxt,BIN,16949","temp,DIR,4096","test,DIR,4096",
// "list.lsw,BIN,1245201"
// the directory "/var/user" contains the predefined directory "Log",
MMEMory Subsystem

Table of Contents

Related product manuals