Source code for RsCmwNrFr1Meas.Implementations.NrSubMeas.MultiEval.Trace.Cc.Iemissions.Limit

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 LimitCls: """Limit commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("limit", core, parent)
[docs] def read(self, carrierComponent=repcap.CarrierComponent.Default) -> List[float]: """SCPI: READ:NRSub:MEASurement<Instance>:MEValuation:TRACe[:CC<no>]:IEMissions:LIMit \n Snippet: value: List[float] = driver.nrSubMeas.multiEval.trace.cc.iemissions.limit.read(carrierComponent = repcap.CarrierComponent.Default) \n Returns the values of the inband emissions limit line for carrier <no>. \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: limit: float Comma-separated list of limit 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:LIMit?', suppressed) return response
[docs] def fetch(self, carrierComponent=repcap.CarrierComponent.Default) -> List[float]: """SCPI: FETCh:NRSub:MEASurement<Instance>:MEValuation:TRACe[:CC<no>]:IEMissions:LIMit \n Snippet: value: List[float] = driver.nrSubMeas.multiEval.trace.cc.iemissions.limit.fetch(carrierComponent = repcap.CarrierComponent.Default) \n Returns the values of the inband emissions limit line for carrier <no>. \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: limit: float Comma-separated list of limit 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:LIMit?', suppressed) return response