Source code for RsFsw.Implementations.Applications.K149_Uwb.Sense.Detect.Off.Time.Maximum

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


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

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

[docs] def set(self, maximum: float) -> None: """ ``[SENSe]:DETect:OFF:TIME:MAXimum`` \n Snippet: ``driver.applications.k149Uwb.sense.detect.off.time.maximum.set(maximum = 1.0)`` \n Defines the maximum allowed off time within a burst. :param maximum: numeric value """ param = Conversions.decimal_value_to_str(maximum) self._core.io.write(f'SENSe:DETect:OFF:TIME:MAXimum {param}')
[docs] def get(self) -> float: """ ``[SENSe]:DETect:OFF:TIME:MAXimum`` \n Snippet: ``value: float = driver.applications.k149Uwb.sense.detect.off.time.maximum.get()`` \n Defines the maximum allowed off time within a burst. :return: maximum: numeric value """ response = self._core.io.query_str(f'SENSe:DETect:OFF:TIME:MAXimum?') return Conversions.str_to_float(response)