Source code for RsCMPX_NrFr1Meas.Implementations.NrSubMeas.Srs.EvmSymbol.Peak.Current

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class CurrentCls: """Current commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("current", core, parent) # noinspection PyTypeChecker
[docs] class ResultData(StructBase): """Response structure. Fields: \n - Reliability: int: 'Reliability indicator' - Low: List[float]: EVM value for low EVM window position. - High: List[float]: EVM 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:NRSub:MEASurement<Instance>:SRS:EVMSymbol:PEAK:CURRent \n Snippet: value: ResultData = driver.nrSubMeas.srs.evmSymbol.peak.current.read() \n Returns the values of the peak EVM vs symbol diagrams. The results of the current, average and maximum diagrams can be retrieved. There is one pair of EVM values per measured OFDM symbol: <Reliability>, {<Low>, <High>}symbol 0, {<Low>, <High>}symbol 1, ... You can query the number of returned pairs via method RsCMPX_NrFr1Meas.NrSubMeas.Srs.Modulation. Nsymbol.fetch. See also 'Square EVM vs Symbol'. \n :return: structure: for return value, see the help for ResultData structure arguments.""" return self._core.io.query_struct(f'READ:NRSub:MEASurement<Instance>:SRS:EVMSymbol:PEAK:CURRent?', self.__class__.ResultData())
[docs] def fetch(self) -> ResultData: """SCPI: FETCh:NRSub:MEASurement<Instance>:SRS:EVMSymbol:PEAK:CURRent \n Snippet: value: ResultData = driver.nrSubMeas.srs.evmSymbol.peak.current.fetch() \n Returns the values of the peak EVM vs symbol diagrams. The results of the current, average and maximum diagrams can be retrieved. There is one pair of EVM values per measured OFDM symbol: <Reliability>, {<Low>, <High>}symbol 0, {<Low>, <High>}symbol 1, ... You can query the number of returned pairs via method RsCMPX_NrFr1Meas.NrSubMeas.Srs.Modulation. Nsymbol.fetch. See also 'Square EVM vs Symbol'. \n :return: structure: for return value, see the help for ResultData structure arguments.""" return self._core.io.query_struct(f'FETCh:NRSub:MEASurement<Instance>:SRS:EVMSymbol:PEAK:CURRent?', self.__class__.ResultData())