Source code for RsFsw.Implementations.Applications.K6_Pulse.Sense.Detect.Limit.Count

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CountCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, max_pulse_count: int) -> None: """ ``[SENSe]:DETect:LIMit:COUNt`` \n Snippet: ``driver.applications.k6Pulse.sense.detect.limit.count.set(max_pulse_count = 1)`` \n Defines the maximum number of pulses to be detected. This limit is only considered if method ``RsFsw.applications.k6Pulse.sense.detect.limit.set()`` is enabled. :param max_pulse_count: integer Range: 0 to see specifications document """ param = Conversions.decimal_value_to_str(max_pulse_count) self._core.io.write(f'SENSe:DETect:LIMit:COUNt {param}')
[docs] def get(self) -> int: """ ``[SENSe]:DETect:LIMit:COUNt`` \n Snippet: ``value: int = driver.applications.k6Pulse.sense.detect.limit.count.get()`` \n Defines the maximum number of pulses to be detected. This limit is only considered if method ``RsFsw.applications.k6Pulse.sense.detect.limit.set()`` is enabled. :return: max_pulse_count: integer Range: 0 to see specifications document """ response = self._core.io.query_str(f'SENSe:DETect:LIMit:COUNt?') return Conversions.str_to_int(response)