Source code for RsCMPX_LteMeas.Implementations.Configure.LteMeas.MultiEval.Limit.Qpsk.EvMagnitude

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 EvMagnitudeCls: """EvMagnitude commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("evMagnitude", core, parent)
[docs] def set(self, rms: float or bool, peak: float or bool) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:LIMit:QPSK:EVMagnitude \n Snippet: driver.configure.lteMeas.multiEval.limit.qpsk.evMagnitude.set(rms = 1.0, peak = 1.0) \n Defines upper limits for the RMS and peak values of the error vector magnitude (EVM) for QPSK. \n :param rms: (float or boolean) No help available :param peak: (float or boolean) No help available """ 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:EVMagnitude {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class EvMagnitudeStruct(StructBase): """Response structure. Fields: \n - Rms: float or bool: No parameter help available - Peak: float or bool: No parameter help available""" __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) -> EvMagnitudeStruct: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:LIMit:QPSK:EVMagnitude \n Snippet: value: EvMagnitudeStruct = driver.configure.lteMeas.multiEval.limit.qpsk.evMagnitude.get() \n Defines upper limits for the RMS and peak values of the error vector magnitude (EVM) for QPSK. \n :return: structure: for return value, see the help for EvMagnitudeStruct structure arguments.""" return self._core.io.query_struct(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:LIMit:QPSK:EVMagnitude?', self.__class__.EvMagnitudeStruct())