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
class GateCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("gate", core, parent)

[docs] def get_count(self) -> int: """ ``[SOURce<HW>]:DME:ANALysis:GATE:COUNt`` \n Snippet: ``value: int = driver.source.dme.analysis.gate.get_count()`` \n 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: """ ``[SOURce<HW>]:DME:ANALysis:GATE:COUNt`` \n Snippet: ``driver.source.dme.analysis.gate.set_count(count = 1)`` \n No help available """ param = Conversions.decimal_value_to_str(count) self._core.io.write(f'SOURce<HwInstance>:DME:ANALysis:GATE:COUNt {param}')