Mmemory:catalog[:all – RIGOL DG1000Z Series User Manual
Page 59

RIGOL
DG1000Z Programming Guide
2-47
:MMEMory:CATalog[:ALL]?
Syntax
:MMEMory:CATalog[:ALL]? [
Description
Query all the files and folders in the current directory.
Parameter
Name
Type
Range
Default
ASCII string
Valid directory in the
external memory
"D:\"
Explanation
This command is only applicable to the external memory.
the folders in the D disk. It is a string enclosed in double quotation marks, for
example, "D:\" and "D:\Rigol".
Return Format
The query returns a string in the following format: space used,space
available,"size,property,name",……; wherein, the units of the space used and space
available are byte, the property of the file is empty and the size is the space that it
occupies, the property of the folder is DIR and the size is the sum of the number of
the files and folders in the folder plus 1. For example,
28672,4102361088,"3,DIR,Rigol","80,,Rigol1.RAF","1360,,Rigol0.RSF" denotes
that for the external memory currently connected to the instrument, its space used
is 28672 bytes and the space available is 4102361088 bytes; it contains 1 folder
(Rigol) and the folder contains 2 files or folders; it contains 2 files of which the size
of the arbitrary waveform file (Rigol1.RAF) is 80 bytes and the size of the state file
(Rigol0.RSF) is 1360 bytes.
Example
Assume that the current directory is D:\.
:MMEM:CAT? /*Query all the files and folders in the external memory and the
query returns
28672,4102361088,"3,DIR,Rigol","80,,Rigol1.RAF","1360,,Rigol
0.RSF"*/