RIGOL
DG900 Programming Guide
2-33
double quotation marks. For example, "C:\" 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. For example, 28672,4102361088,"1360,,Rigol0.RSF" denotes that for the
current directory, its space used is 28672 bytes and the space available is 4102361088 bytes; it contains 1
state file (Rigol0.RSF) and the size of the file is 1360 bytes.
Example
Assume that the current directory is D:\.
:MMEM:CAT:STAT? /*Queries the state file in the external memory directory and the query
returns 28672,4102361088,"1360,,Rigol0.RSF".*/
:MMEMory:CDIRectory
Syntax
:MMEMory:CDIRectory <directory_name>
:MMEMory:CDIRectory?
Description
Sets the current directory.
Queries the current directory.
Parameter
Name
Type
Range
Default
<directory_name>
ASCII String
Valid directory
"C:\"
Remarks
The parameter <directory_name> is a valid directory in the internal or external memory. It is a string
enclosed by double quotation marks. For example, "C:\" and "D:\Rigol".
Return Format
The query returns a string enclosed by double quotation marks and the content in the double quotation
marks is the current directory. For example, "D:".
Example
:MMEM:CDIR "D:\" /*Sets the current directory to Disk D (external memory).*/
:MMEM:CDIR? /*Queries the current directory and the query returns "D:".*/
:MMEMory:COPY
Syntax
:MMEMory:COPY <directory_name>,<file_name>
Description
Copies the file from the current directory to the specified directory (not the current directory).
Parameter
Name
Type
Range
Default
<directory_name>
ASCII String
Valid directory
None
<file_name>
ASCII String
Filename of the file under
the current directory
None
Summary of Contents for DG952
Page 2: ......
Page 168: ......
Page 181: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 7 ...
Page 185: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 11 ...
Page 187: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 13 ...
Page 199: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 25 ...
Page 200: ......