from typing import List
from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal.ArgSingleSuppressed import ArgSingleSuppressed
from .......Internal.Types import DataType
from ....... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class AverageCls:
"""Average commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("average", core, parent)
[docs]
def read(self, carrierComponent=repcap.CarrierComponent.Default) -> List[float]:
"""SCPI: READ:NRSub:MEASurement<Instance>:MEValuation:TRACe[:CC<no>]:IEMissions:AVERage \n
Snippet: value: List[float] = driver.nrSubMeas.multiEval.trace.cc.iemissions.average.read(carrierComponent = repcap.CarrierComponent.Default) \n
Returns the values of the inband emissions trace for carrier <no>. The current, average and maximum traces can be
retrieved. See also 'View Inband Emissions'. \n
Use RsCmwNrFr1Meas.reliability.last_value to read the updated reliability indicator. \n
:param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc')
:return: power: float Comma-separated list of power values, one value per resource block Unit: dB"""
carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent)
suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability')
response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'READ:NRSub:MEASurement<Instance>:MEValuation:TRACe:CC{carrierComponent_cmd_val}:IEMissions:AVERage?', suppressed)
return response
[docs]
def fetch(self, carrierComponent=repcap.CarrierComponent.Default) -> List[float]:
"""SCPI: FETCh:NRSub:MEASurement<Instance>:MEValuation:TRACe[:CC<no>]:IEMissions:AVERage \n
Snippet: value: List[float] = driver.nrSubMeas.multiEval.trace.cc.iemissions.average.fetch(carrierComponent = repcap.CarrierComponent.Default) \n
Returns the values of the inband emissions trace for carrier <no>. The current, average and maximum traces can be
retrieved. See also 'View Inband Emissions'. \n
Use RsCmwNrFr1Meas.reliability.last_value to read the updated reliability indicator. \n
:param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc')
:return: power: float Comma-separated list of power values, one value per resource block Unit: dB"""
carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent)
suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability')
response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'FETCh:NRSub:MEASurement<Instance>:MEValuation:TRACe:CC{carrierComponent_cmd_val}:IEMissions:AVERage?', suppressed)
return response