Source code for RsSmbv.Implementations.Source.Dme.Analysis.Gate

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class GateCls: """Gate commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("gate", core, parent)
[docs] def get_count(self) -> int: """SCPI: [SOURce<HW>]:DME:ANALysis:GATE:COUNt \n Snippet: value: int = driver.source.dme.analysis.gate.get_count() \n No command help available \n :return: count: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:DME:ANALysis:GATE:COUNt?') return Conversions.str_to_int(response)
[docs] def set_count(self, count: int) -> None: """SCPI: [SOURce<HW>]:DME:ANALysis:GATE:COUNt \n Snippet: driver.source.dme.analysis.gate.set_count(count = 1) \n No command help available \n :param count: No help available """ param = Conversions.decimal_value_to_str(count) self._core.io.write(f'SOURce<HwInstance>:DME:ANALysis:GATE:COUNt {param}')