MassMemory
SCPI Commands :
MMEMory:CDIRectory
MMEMory:COPY
MMEMory:DELete
MMEMory:DRIVes
MMEMory:MDIRectory
MMEMory:MOVE
MMEMory:MSIS
MMEMory:RDIRectory
MMEMory:RDIRectory:RECursive
- class MassMemoryCls[source]
MassMemory commands group definition. 15 total commands, 4 Subgroups, 9 group commands
- copy(source_file: str, destination_file: str) None [source]
# SCPI: MMEMory:COPY driver.massMemory.copy(source_file = 'abc', destination_file = 'abc')
Copies an existing file to a new file. Instead of just a file, this command can also be used to copy a complete directory together with all its files.
- param source_file
string String containing the path and file name of the source file
- param destination_file
string String containing the path and name of the target file. The path can be relative or absolute. If DestinationFile is not specified, the SourceFile is copied to the current directory, queried with the method RsSmw.MassMemory.currentDirectory command. Note: Existing files with the same name in the destination directory are overwritten without an error message.
- delete(filename: str) None [source]
# SCPI: MMEMory:DELete driver.massMemory.delete(filename = 'abc')
Removes a file from the specified directory.
- param filename
string String parameter to specify the name and directory of the file to be removed.
- delete_directory(directory: str) None [source]
# SCPI: MMEMory:RDIRectory driver.massMemory.delete_directory(directory = 'abc')
Removes an empty directory from the mass memory storage system. If no directory is specified, the subdirectory with the specified name is deleted in the default directory. To remove a directory with contents, use command method RsSmw. MassMemory.deleteDirectoryRecursive.
- param directory
string String parameter to specify the directory to be deleted.
- delete_directory_recursive(directory: str) None [source]
# SCPI: MMEMory:RDIRectory:RECursive driver.massMemory.delete_directory_recursive(directory = 'abc')
Removes the specified directory, including files and subdirectories from the mass memory storage system. If no directory is specified, the command removes the subdirectories of the default directory. The command the entire directory without further prompt or notification.
- param directory
string String parameter to specify the directory to be deleted.
- get_current_directory() str [source]
# SCPI: MMEMory:CDIRectory value: str = driver.massMemory.get_current_directory()
Changes the default directory for mass memory storage. The directory is used for all subsequent MMEM commands if no path is specified with them.
- return
directory: directory_name String containing the path to another directory. The path can be relative or absolute. To change to a higher directory, use two dots ‘..’ .
- get_drives() str [source]
# SCPI: MMEMory:DRIVes value: str = driver.massMemory.get_drives()
No command help available
- return
drive_list: No help available
- get_msis() str [source]
# SCPI: MMEMory:MSIS value: str = driver.massMemory.get_msis()
Defines the drive or network resource (in the case of networks) for instruments with windows operating system, using msis (MSIS = Mass Storage Identification String) . Note: Instruments with Linux operating system ignore this command, since Linux does not use drive letter assignment.
- return
path: No help available
- make_directory(directory: str) None [source]
# SCPI: MMEMory:MDIRectory driver.massMemory.make_directory(directory = 'abc')
Creates a subdirectory for mass memory storage in the specified directory. If no directory is specified, a subdirectory is created in the default directory. This command can also be used to create a directory tree.
- param directory
string String parameter to specify the new directory.
- move(source_file: str, destination_file: str) None [source]
# SCPI: MMEMory:MOVE driver.massMemory.move(source_file = 'abc', destination_file = 'abc')
Moves an existing file to a new location or, if no path is specified, renames an existing file.
- param source_file
string String parameter to specify the name of the file to be moved.
- param destination_file
string String parameters to specify the name of the new file.
- set_current_directory(directory: str) None [source]
# SCPI: MMEMory:CDIRectory driver.massMemory.set_current_directory(directory = 'abc')
Changes the default directory for mass memory storage. The directory is used for all subsequent MMEM commands if no path is specified with them.
- param directory
directory_name String containing the path to another directory. The path can be relative or absolute. To change to a higher directory, use two dots ‘..’ .
- set_msis(path: str) None [source]
# SCPI: MMEMory:MSIS driver.massMemory.set_msis(path = 'abc')
Defines the drive or network resource (in the case of networks) for instruments with windows operating system, using msis (MSIS = Mass Storage Identification String) . Note: Instruments with Linux operating system ignore this command, since Linux does not use drive letter assignment.
- param path
No help available
Cloning the Group
# Create a clone of the original group, that exists independently
group2 = driver.massMemory.clone()
Subgroups