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
MMEMory:FORMat:READing:CSEParator
MMEMory:FORMat:READing:INFormation
Many MMEMory commands refer to folders and files. These have specific structures, described below.
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.
|
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 |
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 |
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 |
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 |
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 |
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" |
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" |