MassMemory
SCPI Commands :
MMEMory:CDIRectory
MMEMory:DELete
MMEMory:RDIRectory
MMEMory:COPY
MMEMory:MOVE
MMEMory:MDIRectory
MMEMory:SAV
MMEMory:RCL
MMEMory:NAME
MMEMory:DRIVes
- Commands in total: 32Subgroups: 8Direct child commands: 10
- copy(source: str, target: str) None[source]
# MMEMory:COPY driver.massMemory.copy(source = 'abc', target = 'abc')
Copies an existing file to a new file.
- Parameters:
source – String parameter. Contains name and path of the file to be copied. Wildcards (* and ?) are allowed.
target – String parameter. Contains name and path of the new file. If the file already exists, it is overwritten without notice. If no file destination is specified, the source file is written to the current directory specified with method
RsMxo.massMemory.current_directory().
- delete(file_path: str) None[source]
# MMEMory:DELete driver.massMemory.delete(file_path = 'abc')
Removes the specified file/files. To delete directories, use method
RsMxo.massMemory.delete_directory().- Parameters:
file_path – String parameter to specify the name and directory of the file to be removed. Wildcards (* and ?) are allowed. If no path is defined, the current directory is used, specified with method
RsMxo.massMemory.current_directory().
- delete_directory(directory_path: str) None[source]
# MMEMory:RDIRectory driver.massMemory.delete_directory(directory_path = 'abc')
Deletes the specified directory.
- Parameters:
directory_path – String parameter to specify the directory to be deleted. This directory must be empty, otherwise it is not deleted.
- get_current_directory() str[source]
# MMEMory:CDIRectory value: str = driver.massMemory.get_current_directory()
Changes the default directory for file access.
- get_drives() str[source]
# MMEMory:DRIVes value: str = driver.massMemory.get_drives()
Returns the path list of available drives.
- Returns:
drives: List of strings, for example: Instrument only: ‘/home/storage/userData’ Instrument with connected USB flash drive: ‘/home/storage/userData’,’/run/media/usb/MyDriveName/MYDATA’. MYDATA is the partition name, which is also shown in the file explorer. Instrument with connected USB flash drive: ‘/home/storage/userData’,’/run/media/usb/MyDriveName/8AF8-3EBA’. 8AF8-3EBA is an example ID. ID is used if the partition does not have a name, or the name cannot be read.
- get_name() str[source]
# MMEMory:NAME value: str = driver.massMemory.get_name()
Defines the filename for a screenshot that is stored to a file.
- Returns:
filename: String parameter specifying path and filename of the screenshot.
- make_directory(directory_name: str) None[source]
# MMEMory:MDIRectory driver.massMemory.make_directory(directory_name = 'abc')
Creates a new directory with the specified name.
- Parameters:
directory_name – String parameter to specify the new directory. If the path consists of several subdirectories, the complete tree is created if necessary.
- move(source: str, target: str) None[source]
# MMEMory:MOVE driver.massMemory.move(source = 'abc', target = 'abc')
Moves the specified file to a new location on the same drive and renames it.
- Parameters:
source – String parameter, contains name and path of the file to be copied. Wildcards (* and ?) are allowed. Therefore, specify a directory for FileDestination. Renaming is not possible.
target – String parameter. Contains name and path of the new file. If no path is specified, the FileSource directory is used - the file is renamed.
- recall(file_source: str) None[source]
# MMEMory:RCL driver.massMemory.recall(file_source = 'abc')
Restores the instrument settings from the specified file. The stored instrument settings do not include waveform generator settings. This command has the same effect as the combination of method
RsMxo.massMemory.load.state.set()and*RCL.
- save(file_destination: str) None[source]
# MMEMory:SAV driver.massMemory.save(file_destination = 'abc')
Stores the current instrument settings to the specified file. Waveform generator settings are not included. This command has the same effect as the combination of
*SAVand methodRsMxo.massMemory.store.state.set().- Parameters:
file_destination – String parameter specifying path and filename of the target file. Wildcards are not allowed.
- set_current_directory(directory: str) None[source]
# MMEMory:CDIRectory driver.massMemory.set_current_directory(directory = 'abc')
Changes the default directory for file access.
- Parameters:
directory – String parameter to specify the directory.
- set_name(filename: str) None[source]
# MMEMory:NAME driver.massMemory.set_name(filename = 'abc')
Defines the filename for a screenshot that is stored to a file.
- Parameters:
filename – String parameter specifying path and filename of the screenshot.
Cloning the Group
# Create a copy of the original group, that exists independently
massMemory_copy = driver.massMemory.clone()
Subgroups