MassMemory

SCPI Command:

MMEMory:COPY
MMEMory:DELete
MMEMory:DRIVes
MMEMory:MDIRectory
MMEMory:MOVE
MMEMory:MSIS
MMEMory:RDIRectory
class MassMemoryCls[source]

MassMemory commands group definition. 17 total commands, 6 Subgroups, 7 group commands

copy(file_source: str, file_destination: str = None) None[source]
# SCPI: MMEMory:COPY
driver.massMemory.copy(file_source = '1', file_destination = '1')

Copies an existing file. The target directory must exist.

param file_source:

String parameter to specify the name of the file to be copied. Wildcards ? and * are allowed if FileDestination contains a path without file name.

param file_destination:

String parameter to specify the path and/or name of the new file. If the parameter is omitted, the new file is written to the current directory (see method RsCma.MassMemory.CurrentDirectory.set) .

delete(filename: str) None[source]
# SCPI: MMEMory:DELete
driver.massMemory.delete(filename = '1')

Deletes the specified files.

param filename:

String parameter to specify the file to be deleted. The wildcards * and ? are allowed. Specifying a directory instead of a file is not allowed.

delete_directory(directory_name: str) None[source]
# SCPI: MMEMory:RDIRectory
driver.massMemory.delete_directory(directory_name = '1')

Deletes an existing empty directory.

param directory_name:

String parameter to specify the directory.

get_drives() List[str][source]
# SCPI: MMEMory:DRIVes
value: List[str] = driver.massMemory.get_drives()

Returns a list of the drives of the instrument.

return:

drive: No help available

get_msis() str[source]
# SCPI: MMEMory:MSIS
value: str = driver.massMemory.get_msis()

Sets the default storage unit to the specified drive or network server. When the default storage unit is changed, the CMA checks whether the current directory (see method RsCma.MassMemory.CurrentDirectory.set) is also available on the new storage unit. If not, the current directory is automatically set to ‘/’.

return:

msus: No help available

make_directory(directory_name: str) None[source]
# SCPI: MMEMory:MDIRectory
driver.massMemory.make_directory(directory_name = '1')

Creates a directory.

param directory_name:

String parameter to specify the new directory. All not yet existing parts of the specified path are created.

move(file_source: str, file_destination: str) None[source]
# SCPI: MMEMory:MOVE
driver.massMemory.move(file_source = '1', file_destination = '1')

Moves an existing object (file or directory) to a new location and renames it.

param file_source:

String parameter to specify the name of the object to be moved or renamed. Wildcards ? and * are allowed if the files are not renamed.

param file_destination:

String parameter to specify the new name and/or path of the object. New object name without path: The object is renamed. New path without object name: The object is moved. New path and new object name: The object is moved and renamed.

set_msis(msus: str) None[source]
# SCPI: MMEMory:MSIS
driver.massMemory.set_msis(msus = '1')

Sets the default storage unit to the specified drive or network server. When the default storage unit is changed, the CMA checks whether the current directory (see method RsCma.MassMemory.CurrentDirectory.set) is also available on the new storage unit. If not, the current directory is automatically set to ‘/’.

param msus:

String parameter to specify the default storage unit. If the parameter is omitted, the storage unit is set to D:.

Cloning the Group

# Create a clone of the original group, that exists independently
group2 = driver.massMemory.clone()

Subgroups