MassMemory
SCPI Commands :
MMEMory:CDIRectory
MMEMory:COPY
MMEMory:DELete
MMEMory:DRIVes
MMEMory:MDIRectory
MMEMory:MOVE
MMEMory:MSIS
MMEMory:RDIRectory
MMEMory:RDIRectory:RECursive
- Commands in total: 15Subgroups: 4Direct child commands: 9
- copy(source_file: str, destination_file: str) None[source]
# 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.
- Parameters:
source_file – string String containing the path and file name of the source file
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
RsSmbv.massMemory.current_directory()command. Note: Existing files with the same name in the destination directory are overwritten without an error message.
- delete(filename: str) None[source]
# MMEMory:DELete driver.massMemory.delete(filename = 'abc')
Removes a file from the specified directory.
- Parameters:
filename – string String parameter to specify the name and directory of the file to be removed.
- delete_directory(directory: str) None[source]
# 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 method
RsSmbv.massMemory.delete_directory_recursive().- Parameters:
directory – string String parameter to specify the directory to be deleted.
- delete_directory_recursive(directory: str) None[source]
# 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.
- Parameters:
directory – string String parameter to specify the directory to be deleted.
- get_current_directory() str[source]
# 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.
- Returns:
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]
# MMEMory:DRIVes value: str = driver.massMemory.get_drives()
No help available
- get_msis() str[source]
# 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.
- make_directory(directory: str) None[source]
# 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.
- Parameters:
directory – string String parameter to specify the new directory.
- move(source_file: str, destination_file: str) None[source]
# 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.
- Parameters:
source_file – string String parameter to specify the name of the file to be moved.
destination_file – string String parameters to specify the name of the new file.
- set_current_directory(directory: str) None[source]
# 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.
- Parameters:
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]
# 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.
Cloning the Group
# Create a copy of the original group, that exists independently
massMemory_copy = driver.massMemory.clone()
Subgroups