Source code for RsCMPX_Base.Implementations.System.DeviceFootprint

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class DeviceFootprintCls: """DeviceFootprint commands group definition. 3 total commands, 1 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("deviceFootprint", core, parent) @property def history(self): """history commands group. 1 Sub-classes, 1 commands.""" if not hasattr(self, '_history'): from .History import HistoryCls self._history = HistoryCls(self._core, self._cmd_group) return self._history
[docs] def set(self, path: str = None) -> None: """SCPI: SYSTem:DFPRint \n Snippet: driver.system.deviceFootprint.set(path = 'abc') \n Generates an XML file with footprint information about the instrument. \n :param path: No help available """ param = '' if path: param = Conversions.value_to_quoted_str(path) self._core.io.write(f'SYSTem:DFPRint {param}'.strip())
[docs] def get(self) -> bytes: """SCPI: SYSTem:DFPRint \n Snippet: value: bytes = driver.system.deviceFootprint.get() \n Generates an XML file with footprint information about the instrument. \n :return: xml_device_footprint: Block data element containing the XML file contents.""" response = self._core.io.query_bin_block_ERROR(f'SYSTem:DFPRint?') return response
def clone(self) -> 'DeviceFootprintCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = DeviceFootprintCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group