Remote control commands
R&S
®
RTA4000
588
User Manual 1335.7898.02 ─ 08
MMEMory:CATalog?
<PathName>[,<Format>]
Returns the a list of files contained in the specified directory. The result corresponds to
the number of files returned by the
MMEMory:CATalog:LENgth?
command.
Query parameters:
<PathName>
String parameter
Specifies the directory. A filter can be used to list, for example,
only files of a given file type.
<Format>
ALL | WTIMe
ALL: Extended result including file, date, time and attributes
WTIMe: Result including file, date, time
Return values:
<UsedMemory>
Total amount of storage currently used in the directory, in bytes.
<FreeMemory>
Total amount of storage available in the directory, in bytes.
<FileEntry>
String parameter
All files of the directory are listed with their file name, format and
size in bytes.
Example:
Query for files in the DATA directory, with absolute path:
MMEM:CAT? "/USB_FRONT/DATA/*.*"
received: 511104,8633856,"MONDAY.TXT,,8",
"TUESDAY.CSV,,8"
Example:
Query for TXT files in the DATA directory, with relative path:
MMEM:CDIR "/USB_FRONT/DATA"'
MMEM:CAT? "*.TXT"
received: 511104,8633856,"MONDAY.TXT,,8"
MMEM:CAT:LENGTH? "*.TXT"
received 1
Example:
Chapter 17.2.1.2, "Saving, copying, and loading setup data"
Usage:
Query only
MMEMory:CATalog:LENGth?
<PathName>
Returns the number of files in the specified directory. The result corresponds to the
number of files returned by the
MMEMory:CATalog?
command.
Query parameters:
<PathName>
String parameter
Directory to be queried, absolute or relative path
Return values:
<Count>
Number of files.
Example:
Usage:
Query only
Documenting results