from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class UpperCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("upper", core, parent)
[docs]
def set(self, value: float) -> None:
"""
``[SENSe]:ADJust:CONFigure:HYSTeresis:UPPer`` \n
Snippet: ``driver.applications.k17Mcgd.sense.adjust.configure.hysteresis.upper.set(value = 1.0)`` \n
When the reference level is adjusted automatically using the method ``RsFsw.sense.adjust.level.set()`` command, the
internal attenuators and the preamplifier are also adjusted. To avoid frequent adaptation due to small changes in the
input signal, you can define a hysteresis. This setting defines an upper threshold the signal must exceed (compared to
the last measurement) before the reference level is adapted automatically. This setting can only be adjusted in the MSRA
primary application, not in the secondary applications.
:param value: Range: 0 dB to 200 dB, Unit: dB
"""
param = Conversions.decimal_value_to_str(value)
self._core.io.write(f'SENSe:ADJust:CONFigure:HYSTeresis:UPPer {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:ADJust:CONFigure:HYSTeresis:UPPer`` \n
Snippet: ``value: float = driver.applications.k17Mcgd.sense.adjust.configure.hysteresis.upper.get()`` \n
When the reference level is adjusted automatically using the method ``RsFsw.sense.adjust.level.set()`` command, the
internal attenuators and the preamplifier are also adjusted. To avoid frequent adaptation due to small changes in the
input signal, you can define a hysteresis. This setting defines an upper threshold the signal must exceed (compared to
the last measurement) before the reference level is adapted automatically. This setting can only be adjusted in the MSRA
primary application, not in the secondary applications.
"""
response = self._core.io.query_str(f'SENSe:ADJust:CONFigure:HYSTeresis:UPPer?')
return Conversions.str_to_float(response)