Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Search.Burst.Tolerance

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


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

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

[docs] def set(self, tolerance: float) -> None: """ ``[SENSe]:DDEMod:SEARch:BURSt:TOLerance`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.search.burst.tolerance.set(tolerance = 1.0)`` \n Controls burst search tolerance. :param tolerance: Range: 1 to 15000, Unit: SYM """ param = Conversions.decimal_value_to_str(tolerance) self._core.io.write(f'SENSe:DDEMod:SEARch:BURSt:TOLerance {param}')
[docs] def get(self) -> float: """ ``[SENSe]:DDEMod:SEARch:BURSt:TOLerance`` \n Snippet: ``value: float = driver.applications.k70Vsa.sense.ddemod.search.burst.tolerance.get()`` \n Controls burst search tolerance. :return: tolerance: Range: 1 to 15000, Unit: SYM """ response = self._core.io.query_str(f'SENSe:DDEMod:SEARch:BURSt:TOLerance?') return Conversions.str_to_float(response)