HardCopy

SCPI Commands :

HCOPy:DATA
HCOPy:FILE
class HardCopyCls[source]

HardCopy commands group definition. 5 total commands, 2 Subgroups, 2 group commands

get_data() bytes[source]
# SCPI: HCOPy:DATA
value: bytes = driver.hardCopy.get_data()

Captures a screenshot and returns the result in block data format. method RsCmwBase.HardCopy.data captures the entire window, method RsCmwBase.HardCopy.Interior.data only the interior of the window. It is recommended to ‘switch on’ the display before sending this command, see method RsCmwBase.System.Display.update.

return:

data: block Screenshot in block data format.

set_file(filename: str) None[source]
# SCPI: HCOPy:FILE
driver.hardCopy.set_file(filename = 'abc')

Captures a screenshot and stores it to the specified file. method RsCmwBase.HardCopy.file captures the entire window, method RsCmwBase.HardCopy.Interior.file only the interior of the window. If a ‘Remote’ dialog is displayed instead of the normal display contents, this command switches on the display before taking a screenshot, and afterwards off again.

param filename:

string Absolute path and name of the file. The file name extension is added automatically according to the configured format (see method RsCmwBase.HardCopy.Device.formatPy) . Aliases are allowed (see method RsCmwBase.MassMemory.aliases) . Wildcards are not allowed.

Cloning the Group

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

Subgroups