Source code for RsCmwLteMeas.Implementations.Configure.MultiEval.Limit.Qpsk.Perror

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.Types import DataType
from ......Internal.StructBase import StructBase
from ......Internal.ArgStruct import ArgStruct
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class PerrorCls: """Perror commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("perror", core, parent)
[docs] def set(self, rms: float or bool, peak: float or bool) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:LIMit:QPSK:PERRor \n Snippet: driver.configure.multiEval.limit.qpsk.perror.set(rms = 1.0, peak = 1.0) \n Defines symmetric limits for the RMS and peak values of the phase error for QPSK. The limit check fails if the absolute value of the measured phase error exceeds the specified values. \n :param rms: (float or boolean) numeric | ON | OFF Range: 0 deg to 180 deg, Unit: deg ON | OFF enables or disables the limit check. :param peak: (float or boolean) numeric | ON | OFF Range: 0 deg to 180 deg, Unit: deg ON | OFF enables or disables the limit check. """ param = ArgSingleList().compose_cmd_string(ArgSingle('rms', rms, DataType.FloatExt), ArgSingle('peak', peak, DataType.FloatExt)) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:LIMit:QPSK:PERRor {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class PerrorStruct(StructBase): """Response structure. Fields: \n - Rms: float or bool: numeric | ON | OFF Range: 0 deg to 180 deg, Unit: deg ON | OFF enables or disables the limit check. - Peak: float or bool: numeric | ON | OFF Range: 0 deg to 180 deg, Unit: deg ON | OFF enables or disables the limit check.""" __meta_args_list = [ ArgStruct.scalar_float_ext('Rms'), ArgStruct.scalar_float_ext('Peak')] def __init__(self): StructBase.__init__(self, self) self.Rms: float or bool = None self.Peak: float or bool = None
[docs] def get(self) -> PerrorStruct: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:LIMit:QPSK:PERRor \n Snippet: value: PerrorStruct = driver.configure.multiEval.limit.qpsk.perror.get() \n Defines symmetric limits for the RMS and peak values of the phase error for QPSK. The limit check fails if the absolute value of the measured phase error exceeds the specified values. \n :return: structure: for return value, see the help for PerrorStruct structure arguments.""" return self._core.io.query_struct(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:LIMit:QPSK:PERRor?', self.__class__.PerrorStruct())