Source code for RsFsw.Implementations.Sense.Ademod.Settling.Time.Limit.Upper

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class UpperCls: """Upper commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("upper", core, parent)
[docs] def set(self, position: float) -> None: """SCPI: [SENSe]:ADEMod:SETTling:TIME:LIMit:UPPer \n Snippet: driver.sense.ademod.settling.time.limit.upper.set(position = 1.0) \n Defines the upper limit of the settling time corridor. The value is defined with reference to the reference value, see also method RsFsw.Display.Window.Subwindow.Trace.Y.Scale.Rvalue.set and [SENSe:]ADEMod:PM:RPOint[:X]. For details, see 'Settling time'. \n :param position: Unit: depends on result type """ param = Conversions.decimal_value_to_str(position) self._core.io.write(f'SENSe:ADEMod:SETTling:TIME:LIMit:UPPer {param}')
[docs] def get(self) -> float: """SCPI: [SENSe]:ADEMod:SETTling:TIME:LIMit:UPPer \n Snippet: value: float = driver.sense.ademod.settling.time.limit.upper.get() \n Defines the upper limit of the settling time corridor. The value is defined with reference to the reference value, see also method RsFsw.Display.Window.Subwindow.Trace.Y.Scale.Rvalue.set and [SENSe:]ADEMod:PM:RPOint[:X]. For details, see 'Settling time'. \n :return: position: Unit: depends on result type""" response = self._core.io.query_str(f'SENSe:ADEMod:SETTling:TIME:LIMit:UPPer?') return Conversions.str_to_float(response)