Source code for RsCMPX_Base.Implementations.HardCopy.Device

from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class DeviceCls: """Device commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("device", core, parent) # noinspection PyTypeChecker
[docs] def get_format_py(self) -> enums.ScreenshotFormat: """SCPI: HCOPy:DEVice:FORMat \n Snippet: value: enums.ScreenshotFormat = driver.hardCopy.device.get_format_py() \n No command help available \n :return: file_formats: No help available """ response = self._core.io.query_str('HCOPy:DEVice:FORMat?') return Conversions.str_to_scalar_enum(response, enums.ScreenshotFormat)
[docs] def set_format_py(self, file_formats: enums.ScreenshotFormat) -> None: """SCPI: HCOPy:DEVice:FORMat \n Snippet: driver.hardCopy.device.set_format_py(file_formats = enums.ScreenshotFormat.BMP) \n No command help available \n :param file_formats: No help available """ param = Conversions.enum_scalar_to_str(file_formats, enums.ScreenshotFormat) self._core.io.write(f'HCOPy:DEVice:FORMat {param}')