Mmemory:cdirectory, Mmemory:copy – RIGOL DG1000Z Series User Manual

Page 61

Advertising
background image

Chapter 2 Command System

RIGOL

DG1000Z Programming Guide

2-49

:MMEMory:CDIRectory

Syntax

:MMEMory:CDIRectory <directory_name>

:MMEMory:CDIRectory?

Description

Set the current directory.
Query the current directory.

Parameter

Name

Type

Range

Default

<directory_name

>

ASCII string

Valid directory in the

external memory

"D:\"

Explanation

 This command is only applicable to the external memory.

 <folder> is a valid directory in the external memory, including the D disk and

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 enclosed in double quotation marks and the content in the

double quotation marks is the current directory, for example, "D:\".

Example

:MMEM:CDIR "D:\" /*Set the current directory to the D disk (external

memory)*/

:MMEM:CDIR? /*Query the current directory and the query returns "D:\"*/

:MMEMory:COPY

Syntax

:MMEMory:COPY <directory_name>,<file_name>

Description

Copy the file under the current directory in the external memory to the specified

directory in the external memory (not the current directory).

Parameter

Name

Type

Range

Default

<directory_name

>

ASCII string

Valid directory in the

external memory

None

<file_name>

ASCII string

Filename of the file under

the current directory of the

external memory

None

Explanation

 This command is only applicable to the external memory.

 <folder> is a valid directory in the external memory, including the D disk and

the folders in the D disk. It is a string enclosed in double quotation marks, for

example, "D:\" and "D:\Rigol".

Example

Assume that the current directory is D:\,
:MMEM:COPY "D:\Rigol","Rigol1.RAF" /*Copy the file Rigol1.RAF under the

external memory directory to "D:\Rigol"

(the Rigol folder in D disk)*/

Advertising