from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StopCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("stop", core, parent)
[docs]
def set(self, abs_time_stp_lev_eye_height: float, measurement=repcap.Measurement.Default) -> None:
"""
``MEASurement<*>:EYEJitter:EYEHeight:ABSolute:STOP`` \n
Snippet: ``driver.measurement.eyeJitter.eyeHeight.absolute.stop.set(abs_time_stp_lev_eye_height = 1.0, measurement = repcap.Measurement.Default)`` \n
Defines the stop of the measurement window in relative values,
if method ``RsRtx.measurement.eyeJitter.eyeHeight.mode.set()`` is set to ABSolute. This settings is relevant, if method
``RsRtx.measurement.main.set()`` is set to one of the following: ERPercent, ERDB, EHEight, QFACtor, RMSNoise, SNRatio,
EAMPlitude.
:param abs_time_stp_lev_eye_height: -100E+24 to 100E+24
:param measurement: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Measurement')
"""
param = Conversions.decimal_value_to_str(abs_time_stp_lev_eye_height)
measurement_cmd_val = self._cmd_group.get_repcap_cmd_value(measurement, repcap.Measurement)
self._core.io.write_with_opc(f'MEASurement{measurement_cmd_val}:EYEJitter:EYEHeight:ABSolute:STOP {param}')
[docs]
def get(self, measurement=repcap.Measurement.Default) -> float:
"""
``MEASurement<*>:EYEJitter:EYEHeight:ABSolute:STOP`` \n
Snippet: ``value: float = driver.measurement.eyeJitter.eyeHeight.absolute.stop.get(measurement = repcap.Measurement.Default)`` \n
Defines the stop of the measurement window in relative values,
if method ``RsRtx.measurement.eyeJitter.eyeHeight.mode.set()`` is set to ABSolute. This settings is relevant, if method
``RsRtx.measurement.main.set()`` is set to one of the following: ERPercent, ERDB, EHEight, QFACtor, RMSNoise, SNRatio,
EAMPlitude.
:param measurement: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Measurement')
"""
measurement_cmd_val = self._cmd_group.get_repcap_cmd_value(measurement, repcap.Measurement)
response = self._core.io.query_str_with_opc(f'MEASurement{measurement_cmd_val}:EYEJitter:EYEHeight:ABSolute:STOP?')
return Conversions.str_to_float(response)