MassMemory
SCPI Commands :
MMEMory:CDIRectory
MMEMory:DELete
MMEMory:RDIRectory
MMEMory:COPY
MMEMory:MOVE
MMEMory:MDIRectory
MMEMory:SAV
MMEMory:RCL
MMEMory:MSIS
MMEMory:DRIVes
MMEMory:NAME
- Commands in total: 24Subgroups: 5Direct child commands: 11
- 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
RsRtx.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
RsRtx.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
RsRtx.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.
- 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. If no drive letter or server name is indicated, the directory is created on the default storage device specified with method
RsRtx.massMemory.msis().
- 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. This command has the same effect as the combination of method
RsRtx.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. This command has the same effect as the combination of
*SAVand methodRsRtx.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. If the string also contains a drive letter or network server name, the command method
RsRtx.massMemory.msis()is executed implicitly.
- set_drives(drives: List[str]) None[source]
# MMEMory:DRIVes driver.massMemory.set_drives(drives = ['abc1', 'abc2', 'abc3'])
Returns a list of the logical drives of the instrument as configured in the operating system.
- set_msis(drive: str) None[source]
# MMEMory:MSIS driver.massMemory.set_msis(drive = 'abc')
Changes the default storage device to the indicated drive or network server.
- Parameters:
drive – String parameter. Drives are indicated with their drive letter, network servers require the UNC format.
- set_name(rem_print_file_nme: str) None[source]
# MMEMory:NAME driver.massMemory.set_name(rem_print_file_nme = 'abc')
Defines the file name when an image of the display is stored to a file.
- Parameters:
rem_print_file_nme – String parameter specifiying path and file name of the screenshot.
Cloning the Group
# Create a copy of the original group, that exists independently
massMemory_copy = driver.massMemory.clone()
Subgroups