Source code for RsCma.Implementations.Trigger.AfRf.Measurement.MultiEval.Oscilloscope.Demodulation.Fdeviation

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class FdeviationCls: """Fdeviation commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("fdeviation", core, parent)
[docs] def get_threshold(self) -> float: """SCPI: TRIGger:AFRF:MEASurement<Instance>:MEValuation:OSCilloscope:DEModulation:FDEViation:THReshold \n Snippet: value: float = driver.trigger.afRf.measurement.multiEval.oscilloscope.demodulation.fdeviation.get_threshold() \n Defines the trigger threshold for the RF input path, for FM and FM stereo demodulation. \n :return: threshold: Frequency deviation threshold Range: -96 kHz to 96 kHz, Unit: Hz """ response = self._core.io.query_str('TRIGger:AFRF:MEASurement<Instance>:MEValuation:OSCilloscope:DEModulation:FDEViation:THReshold?') return Conversions.str_to_float(response)
[docs] def set_threshold(self, threshold: float) -> None: """SCPI: TRIGger:AFRF:MEASurement<Instance>:MEValuation:OSCilloscope:DEModulation:FDEViation:THReshold \n Snippet: driver.trigger.afRf.measurement.multiEval.oscilloscope.demodulation.fdeviation.set_threshold(threshold = 1.0) \n Defines the trigger threshold for the RF input path, for FM and FM stereo demodulation. \n :param threshold: Frequency deviation threshold Range: -96 kHz to 96 kHz, Unit: Hz """ param = Conversions.decimal_value_to_str(threshold) self._core.io.write(f'TRIGger:AFRF:MEASurement<Instance>:MEValuation:OSCilloscope:DEModulation:FDEViation:THReshold {param}')