from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SsbCls:
"""Ssb commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ssb", core, parent)
[docs] def get_threshold(self) -> float:
"""SCPI: TRIGger:AFRF:MEASurement<Instance>:MEValuation:OSCilloscope:DEModulation:SSB:THReshold \n
Snippet: value: float = driver.trigger.afRf.measurement.multiEval.oscilloscope.demodulation.ssb.get_threshold() \n
Defines the trigger threshold for the RF input path, for SSB demodulation. \n
:return: threshold: Audio level threshold Range: -30 V to 30 V, Unit: V
"""
response = self._core.io.query_str('TRIGger:AFRF:MEASurement<Instance>:MEValuation:OSCilloscope:DEModulation:SSB:THReshold?')
return Conversions.str_to_float(response)
[docs] def set_threshold(self, threshold: float) -> None:
"""SCPI: TRIGger:AFRF:MEASurement<Instance>:MEValuation:OSCilloscope:DEModulation:SSB:THReshold \n
Snippet: driver.trigger.afRf.measurement.multiEval.oscilloscope.demodulation.ssb.set_threshold(threshold = 1.0) \n
Defines the trigger threshold for the RF input path, for SSB demodulation. \n
:param threshold: Audio level threshold Range: -30 V to 30 V, Unit: V
"""
param = Conversions.decimal_value_to_str(threshold)
self._core.io.write(f'TRIGger:AFRF:MEASurement<Instance>:MEValuation:OSCilloscope:DEModulation:SSB:THReshold {param}')