MMEMory Subsystem - Data Transfer Commands

These commands transfer files into and out of the instrument's mass memory.

The MMEMory subsystem also includes two other types of commands:

General Purpose File Management

STATe and PREFerence File Management

Command Summary

MMEMory:DOWNload:DATA

MMEMory:DOWNload:FNAMe

MMEMory:FORMat:READing:CSEParator

MMEMory:FORMat:READing:INFormation

MMEMory:FORMat:READing:RLIMit

MMEMory:STORe:DATA

MMEMory:UPLoad?

Folder and file formats

Many MMEMory commands refer to folders and files. These have specific structures, described below.

Format for a <folder>

Format for a <file>

MMEMory:DOWNload:DATA <binary_block>

Downloads data from the host computer to a file whose name has been specified by MMEMory:DOWNload:FNAMe.

The data in <binary_block> is written to the selected file.

Note

Any data previously stored in the file is lost when you execute this command.

Parameter Typical Return
Any IEEE-488.2 definite- or indefinite-length block (none)
Write "Hello" to the file "\Myfile" on internal storage.

MMEM:DOWN:FNAM "INT:\Myfile"
MMEM:DOWN:DATA #15Hello

MMEMory:DOWNload:FNAMe <filename>
MMEMory:DOWNload:FNAMe?

Creates or opens the specified filename prior to writing data to that file with MMEMory:DOWNload:DATA.

Parameter Typical Return
Any valid file name

(none)

Write "Hello" to the file "\Myfile" on internal storage.

MMEM:DOWN:FNAM "INT:\Myfile"
MMEM:DOWN:DATA #15Hello

MMEMory:FORMat:READing:CSEParator {COMMa|SEMicolon|TAB}
MMEMory:FORMat:READing:CSEParator?

Specifies the character used to separate the columns in stored data.

Parameter Typical Return
{COMMa|SEMicolon|TAB}. Default: COMMa.

TAB, COMM or SEM

Specify tabs as the column separator:

MMEMory:FORMat:READing:CSEParator TAB

MMEMory:FORMat:READing:INFormation {OFF|ON}
MMEMory:FORMat:READing:INFormation?

Disables/enables header information and reading numbers in stored data.

Parameter Typical Return
{OFF|ON}. Default OFF.

OFF or ON

Enable the format for the .csv file:

MMEM:FORMat:READing:INFormation ON

MMEMory:FORMat:READing:RLIMit {OFF|ON}
MMEMory:FORMat:READing:RLIMit?

When enabled, limits the maximum number rows per stored .csv data file to one million, including any header row, if enabled.

Parameter Typical Return
{OFF|ON}. Default ON.

OFF or ON

Disable row limits for the .csv file:

MMEM:FORM:READ:RLIMit OFF

MMEMory:STORe:DATA RDG_STORE, <file>

Stores all measurements in reading memory to the specified data file. The file name optionally includes the folder name and the .csv or .dat file extension.

Parameter Typical Return
Any valid file name (none)

Store all measurements in reading memory to MyVoltMeas.csv in the root folder of the internal flash file system.

MMEM:STOR:DATA RDG_STORE,"INT:\MyVoltMeas"

MMEMory:UPLoad? <filename>

Uploads the contents of a file from the instrument to the host computer.

Parameter Typical Return
Any valid file name IEEE 488.2 definite-length block
Upload the state file "Myfile.sta" in the root directory of the internal flash file system to the host computer:

MMEM:UPL? "INT:\Myfile.sta"