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 Complete file path or relative file path and filename of the source file.
destination_file – string Complete file path or relative file path and filename of the target file. If DestinationFile is not specified, the SourceFile is copied to the current directory, queried with the method
RsSmw.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 Filename or complete file path
- 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.
- Parameters:
directory – string Specifies the complete file path or relative file path of the directory that you want to delete.
- 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. All following MMEM commands use the new directory, if you do not specify another directory explicitly in the command string.
- Returns:
directory: directory_name Complete file path or relative file path of the target directory. To change to a higher directory, use two dots: :MMEMory:CDIRectory ‘..’
- 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 for instruments with windows operating system, using msis (MSIS = Mass Storage Identification String) . Note: Instruments with the 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 Specifies the complete file path of 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 Filename of the file that you want to move.
destination_file – string Filename 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. All following MMEM commands use the new directory, if you do not specify another directory explicitly in the command string.
- Parameters:
directory – directory_name Complete file path or relative file path of the target directory. To change to a higher directory, use two dots: :MMEMory:CDIRectory ‘..’
- set_msis(path: str) None[source]
# MMEMory:MSIS driver.massMemory.set_msis(path = 'abc')
Defines the drive or network resource for instruments with windows operating system, using msis (MSIS = Mass Storage Identification String) . Note: Instruments with the 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