Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Trigger.Sequence.IfPower.Hysteresis

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


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

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

[docs] def set(self, hysteresis: float) -> None: """ ``TRIGger[:SEQuence]:IFPower:HYSTeresis`` \n Snippet: ``driver.applications.k14Xnr5G.trigger.sequence.ifPower.hysteresis.set(hysteresis = 1.0)`` \n Defines the trigger hysteresis, which is only available for 'IF Power' trigger sources. :param hysteresis: Range: 3 dB to 50 dB, Unit: DB """ param = Conversions.decimal_value_to_str(hysteresis) self._core.io.write(f'TRIGger:SEQuence:IFPower:HYSTeresis {param}')
[docs] def get(self) -> float: """ ``TRIGger[:SEQuence]:IFPower:HYSTeresis`` \n Snippet: ``value: float = driver.applications.k14Xnr5G.trigger.sequence.ifPower.hysteresis.get()`` \n Defines the trigger hysteresis, which is only available for 'IF Power' trigger sources. :return: hysteresis: Range: 3 dB to 50 dB, Unit: DB """ response = self._core.io.query_str(f'TRIGger:SEQuence:IFPower:HYSTeresis?') return Conversions.str_to_float(response)