S331E, S332E, S361E, S362E Site Master™MS2711E, MS2712E, MS2713E Spectrum Master™MT8212E, MT8213E Cell Master™ Programming Manual : All Mode Commands : :MMEMory Subsystem
 
:MMEMory Subsystem
The Mass Memory subsystem contains functions that provide access to the instrument’s setup and data storage.
MMEM:DIR?
Title
Show Directory
Description
This command returns the non-recursive contents of the directory specified as the parameter. The parameter is case sensitive and must be enclosed in either single quotes (‘ ’) or double quotes (“ ”). Use “/” as a directory separator. For the internal memory, the parameter must start with "Internal".
The response is formatted as follows:
<file entry><sp>\r\n<file entry>
Where <file entry> is either:
<file name><sp><file type><sp><timestamp><sp> <file size>
Or <file entry> is:
<directory name><sp><file type><sp><timestamp>
<sp> should be a single space.
<timestamp> is the number of seconds since Jan 1 1970.
Parameter
<directory>
Parameter Type
<string>
Front Panel Access
Shift‑7 (File)
:MMEMory:MSIS INTernal|USB
:MMEMory:MSIS?
Title
Save Location
Description
Sets the instrument’s internal memory or the USB Flash drive as the save location for all subsequently saved files. This command also determines the destination location for copied files. For example, selecting internal memory as the current save location will set the USB Flash drive as the destination for copied files, and vice-versa.
Note that the save location specified here applies to remote operation. It is independent of and can be different from the save location set via the instrument front panel. The query form of this command returns the save location setting for remote operation, not the front panel setting.
Commands to load, store (save), or copy data will fail if the intended location is the USB drive and no USB device is plugged into the instrument.
Before setting the save location, send the :SYSTem:MSIS? USB command to query the ready state of the USB Flash drive.
Parameter
INTernal|USB
Parameter Type
<char>
Related Command
:MMEMory:MSIS:DESTination
:SYSTem:MSIS[:STATe]?
Front Panel Access
Shift‑7 (File), Save, Change Save Location, (select drive or folder)
:MMEMory:MSIS:COPY
Title
Copy from Current Save Location to Destination
Description
Copies all files and folders from the current save location to the destination. File hierarchy is maintained. When copying to USB, all data is placed in a folder named usr in the root directory of the drive. If the usr folder already exists, any file it contains that has the same name as a file being copied will be overwritten.
In remote operation, files can only be copied from internal memory to the USB device or from USB to internal memory. If you wish to copy to the same memory device or copy specific files and folders, use the instrument front panel.
The Copy command will not execute if no USB device is plugged in. Before copying files, send the :SYSTem:MSIS? USB command to query the ready state of the USB Flash drive.
Note 
Exercise caution before copying. Large files or a great number of files may take a long time to copy. The instrument will not respond to user input while files are being transferred.
Related Command
:MMEMory:MSIS
:MMEMory:MSIS:DESTination
:SYSTem:MSIS[:STATe]?
Front Panel Access
Shift‑7 (File), Copy
:MMEMory:MSIS:DESTination INTernal|USB
:MMEMory:MSIS:DESTination?
Title
Destination of Copied Files
Description
Sets the destination location for files copied with the :MMEMory:MSIS:COPY command. If USB is the destination, files and folders will be copied to a directory named usr at the root level of the USB device. If the usr folder currently exists, the COPY command will overwrite any file that has the same name as a copied file.
The Destination command also sets the current save location. For example, selecting the USB Flash drive as the destination will set the instrument’s internal memory as the current save location, and vice-versa.
The destination location specified by SCPI command applies to remote operation. It is independent of and can be different from the destination selected using the instrument front panel. The query form of this command returns the destination location setting for remote operation, not the front panel setting.
This command is ineffective if the specified destination is not available, such as having no USB device plugged into the USB port. Before setting the destination location, send the :SYSTem:MSIS? USB command to query the ready state of the USB drive.
Parameter
INTernal|USB
Parameter Type
<char>
Related Command
:MMEMory:MSIS
:MMEMory:MSIS:COPY
:SYSTem:MSIS[:STATe]?
Front Panel Access
Shift‑7 (File), Copy, (select drive or folder under Select Destination)
:MMEMory:STORe:JPEG <filename>
Title
Save Screen as JPEG
Description
Saves the current screen measurement as a jpeg file. This will save the screen as a jpeg file specified by <filename> with the extension .jpg to the current save location. <filename> should be enclosed in either single quotes (‘ ’) or double quotes (“ ”) and should not contain a file extension. Use the command MMEMory:MSIS to set the current save location.
Parameter
<filename>
Example
To save the screen into the file name “trace”:
:MMEMory:STORe:JPEG “trace”
Related Command
:MMEMory:DATA?
:MMEMory:MSIS INTernal|USB
Front Panel Access
Shift‑7 (File), Save, Change Type, (select JPEG from list)