Directory

SCPI Commands :

HCOPy:FILE:[NAME]:AUTO:DIRectory:CLEar
HCOPy:FILE:[NAME]:AUTO:DIRectory
Commands in total: 2
Subgroups: 0
Direct child commands: 2
clear() None[source]
# HCOPy:FILE:[NAME]:AUTO:DIRectory:CLEar
driver.hardCopy.file.name.auto.directory.clear()

Deletes all files with extensions bmp, jpg, png and xpm in the directory set for automatic naming.

clear_with_opc(opc_timeout_ms: int = -1) None[source]
# HCOPy:FILE:[NAME]:AUTO:DIRectory:CLEar
driver.hardCopy.file.name.auto.directory.clear_with_opc()

Deletes all files with extensions bmp, jpg, png and xpm in the directory set for automatic naming.

Same as clear, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value.

Parameters:

opc_timeout_ms – Maximum time to wait in milliseconds, valid only for this call.

get_value() str[source]
# HCOPy:FILE:[NAME]:AUTO:DIRectory
value: str = driver.hardCopy.file.name.auto.directory.get_value()

Determines the path to save the hard copy, if you have enabled Automatic Naming. If the directory does not yet exist, the instrument automatically creates a new directory, using the instrument name and /var/user/ by default.

Returns:

directory: string

set_value(directory: str) None[source]
# HCOPy:FILE:[NAME]:AUTO:DIRectory
driver.hardCopy.file.name.auto.directory.set_value(directory = 'abc')

Determines the path to save the hard copy, if you have enabled Automatic Naming. If the directory does not yet exist, the instrument automatically creates a new directory, using the instrument name and /var/user/ by default.

Parameters:

directory – string