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, position: float) -> None:
"""
``[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 method
``RsFsw.sense.ademod.pm.rpoint.x.set()`` . For details, see 'Settling time'.
: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:
"""
``[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 method
``RsFsw.sense.ademod.pm.rpoint.x.set()`` . For details, see 'Settling time'.
: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)