Source code for RsFsw.Implementations.Applications.K50_Spurious.Sense.Creference.Harmonics.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, tol: float) -> None: """ ``[SENSe]:CREFerence:HARMonics:TOLerance`` \n Snippet: ``driver.applications.k50Spurious.sense.creference.harmonics.tolerance.set(tol = 1.0)`` \n Sets the frequency tolerance to match harmonics to measured spurs. :param tol: numeric value Unit: Hz """ param = Conversions.decimal_value_to_str(tol) self._core.io.write(f'SENSe:CREFerence:HARMonics:TOLerance {param}')
[docs] def get(self) -> float: """ ``[SENSe]:CREFerence:HARMonics:TOLerance`` \n Snippet: ``value: float = driver.applications.k50Spurious.sense.creference.harmonics.tolerance.get()`` \n Sets the frequency tolerance to match harmonics to measured spurs. """ response = self._core.io.query_str(f'SENSe:CREFerence:HARMonics:TOLerance?') return Conversions.str_to_float(response)