Source code for RsCMPX_LteMeas.Implementations.LteMeas.MultiEval.Perror.Average

from typing import List

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 ...... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class AverageCls: """Average commands group definition. 5 total commands, 1 Subgroups, 3 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("average", core, parent) @property def nref(self): """nref commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_nref'): from .Nref import NrefCls self._nref = NrefCls(self._core, self._cmd_group) return self._nref # noinspection PyTypeChecker
[docs] class ResultData(StructBase): """Response structure. Fields: \n - Reliability: int: 'Reliability indicator' - Low: List[float]: Phase error value for low EVM window position - High: List[float]: Phase error value for high EVM window position""" __meta_args_list = [ ArgStruct.scalar_int('Reliability', 'Reliability'), ArgStruct('Low', DataType.FloatList, None, False, True, 1), ArgStruct('High', DataType.FloatList, None, False, True, 1)] def __init__(self): StructBase.__init__(self, self) self.Reliability: int = None self.Low: List[float] = None self.High: List[float] = None
[docs] def read(self) -> ResultData: """SCPI: READ:LTE:MEASurement<Instance>:MEValuation:PERRor:AVERage \n Snippet: value: ResultData = driver.lteMeas.multiEval.perror.average.read() \n Returns the values of the phase error diagrams for the SC-FDMA symbols in the measured slot. The results of the current, average and maximum diagrams can be retrieved. There is one pair of phase error values per SC-FDMA symbol, returned in the following order: <Reliability>, {<Low>, <High>}symbol 0, {<Low>, <High>}symbol 1, ... See also 'Square Magnitude Error, Phase Error'. \n :return: structure: for return value, see the help for ResultData structure arguments.""" return self._core.io.query_struct(f'READ:LTE:MEASurement<Instance>:MEValuation:PERRor:AVERage?', self.__class__.ResultData())
[docs] def fetch(self) -> ResultData: """SCPI: FETCh:LTE:MEASurement<Instance>:MEValuation:PERRor:AVERage \n Snippet: value: ResultData = driver.lteMeas.multiEval.perror.average.fetch() \n Returns the values of the phase error diagrams for the SC-FDMA symbols in the measured slot. The results of the current, average and maximum diagrams can be retrieved. There is one pair of phase error values per SC-FDMA symbol, returned in the following order: <Reliability>, {<Low>, <High>}symbol 0, {<Low>, <High>}symbol 1, ... See also 'Square Magnitude Error, Phase Error'. \n :return: structure: for return value, see the help for ResultData structure arguments.""" return self._core.io.query_struct(f'FETCh:LTE:MEASurement<Instance>:MEValuation:PERRor:AVERage?', self.__class__.ResultData())
# noinspection PyTypeChecker
[docs] class CalculateStruct(StructBase): """Response structure. Fields: \n - Reliability: int: No parameter help available - Low: List[enums.ResultStatus2]: No parameter help available - High: List[enums.ResultStatus2]: No parameter help available""" __meta_args_list = [ ArgStruct.scalar_int('Reliability', 'Reliability'), ArgStruct('Low', DataType.EnumList, enums.ResultStatus2, False, True, 1), ArgStruct('High', DataType.EnumList, enums.ResultStatus2, False, True, 1)] def __init__(self): StructBase.__init__(self, self) self.Reliability: int = None self.Low: List[enums.ResultStatus2] = None self.High: List[enums.ResultStatus2] = None
[docs] def calculate(self) -> CalculateStruct: """SCPI: CALCulate:LTE:MEASurement<Instance>:MEValuation:PERRor:AVERage \n Snippet: value: CalculateStruct = driver.lteMeas.multiEval.perror.average.calculate() \n No command help available \n :return: structure: for return value, see the help for CalculateStruct structure arguments.""" return self._core.io.query_struct(f'CALCulate:LTE:MEASurement<Instance>:MEValuation:PERRor:AVERage?', self.__class__.CalculateStruct())
def clone(self) -> 'AverageCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = AverageCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group