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
clear_with_opc ( opc_timeout_ms: int = -1 ) → None
# HCOPy:FILE:[NAME]:AUTO:DIRectory:CLEar
driver.hardCopy.file.name.auto.directory.clear()
driver.hardCopy.file.name.auto.directory.clear_with_opc(opc_timeout_ms = 3000)

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

clear_with_opc() does the same as clear(), but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout to set the timeout value.

Parameters:

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

get_value ( ) → str
set_value ( directory: str ) → None
# HCOPy:FILE:[NAME]:AUTO:DIRectory
# get:
value: str = driver.hardCopy.file.name.auto.directory.get_value()
# set:
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