Source code for RsCmwNrFr1Meas.Implementations.NrSubMeas.MultiEval.Trace.Cc.EsFlatness

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 EsFlatnessCls: """EsFlatness commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("esFlatness", core, parent)
[docs] def read(self, carrierComponent=repcap.CarrierComponent.Default) -> List[float]: """SCPI: READ:NRSub:MEASurement<Instance>:MEValuation:TRACe[:CC<no>]:ESFLatness \n Snippet: value: List[float] = driver.nrSubMeas.multiEval.trace.cc.esFlatness.read(carrierComponent = repcap.CarrierComponent.Default) \n Returns the values of the equalizer spectrum flatness trace for carrier <no>. See also 'View Equalizer Spectrum Flatness'. \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 subcarrier For not allocated subcarriers, NCAP is returned. 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}:ESFLatness?', suppressed) return response
[docs] def fetch(self, carrierComponent=repcap.CarrierComponent.Default) -> List[float]: """SCPI: FETCh:NRSub:MEASurement<Instance>:MEValuation:TRACe[:CC<no>]:ESFLatness \n Snippet: value: List[float] = driver.nrSubMeas.multiEval.trace.cc.esFlatness.fetch(carrierComponent = repcap.CarrierComponent.Default) \n Returns the values of the equalizer spectrum flatness trace for carrier <no>. See also 'View Equalizer Spectrum Flatness'. \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 subcarrier For not allocated subcarriers, NCAP is returned. 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}:ESFLatness?', suppressed) return response