SCPI.MMEMory.CATalog(Dir)

Object type

Property (Read Only)

Syntax

Cont = SCPI.MMEMory.CATalog(Dir)

Description

This command reads the following information on the built-in storage device of the E5071C:

Variable

Parameter

Cont

Description

Directory information ("{A},{B},{Name 1},,{Size 1},{Name 2},,{Size 2}, ... ,{Name N},,{Size N}")

Where N is the number of all files in the specified directory and n is an integer between 1 and N.

 {A}: Space in use of the built-in storage device (byte).

 {B}: Available space of the built-in storage device (byte).

 {Name n}: Name of the n-th file (directory).

 {Size n}: Size (byte) of the n-th file (directory). Always 0 for directories.

Data type

Character string type (String)

 

Parameter

Dir

Description

Directory name whose information you want to read out

Data type

Character string type (String)

Range

254 characters or less

Examples

Dim DirCont As String
DirCont = SCPI.MMEMory.CATalog("d:\")

Equivalent key

No equivalent key is available on the front panel.

Equivalent SCPI command

Syntax

:MMEMory:CATalog? <string 1>

Query response

{string 2}<newline><^END>

The format of the readout character string is as follows:

"{used_size},{free_size},{name 1},,{size 1}, ...  ,{name N},,{size N}"

 

Where:

N is the number of all files in the specified directory and n is an integer between 1 and N.

{used_size}:

Space in use of the built-in storage device (byte).

{free_size}:

Available space of the built-in storage device (byte).

{name n}:

Name of the n-th file (directory).

{size n}:

Size (byte) of the n-th file (directory). Always 0 for directories.

Example of use

10 DIM A$[1000]
20 OUTPUT 717;":MMEM:CAT? ""\"""
30 ENTER 717;A$