Source code for RsCMPX_NrFr2Meas.Implementations.NrMmwMeas.MultiEval.Cc.Modulation.Dmodulation

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.ArgSingleSuppressed import ArgSingleSuppressed
from ......Internal.Types import DataType
from ...... import enums
from ...... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class DmodulationCls: """Dmodulation commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("dmodulation", core, parent) # noinspection PyTypeChecker
[docs] def fetch(self, carrierComponent=repcap.CarrierComponent.Default) -> enums.ModScheme: """SCPI: FETCh:NRMMw:MEASurement<Instance>:MEValuation[:CC<no>]:MODulation:DMODulation \n Snippet: value: enums.ModScheme = driver.nrMmwMeas.multiEval.cc.modulation.dmodulation.fetch(carrierComponent = repcap.CarrierComponent.Default) \n Returns the modulation scheme for the measured slot, for carrier <no>. \n Suppressed linked return values: reliability \n :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') :return: modulation: π/2-BPSK, BPSK, QPSK, 16QAM, 64QAM, 256QAM""" 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_str_suppressed(f'FETCh:NRMMw:MEASurement<Instance>:MEValuation:CC{carrierComponent_cmd_val}:MODulation:DMODulation?', suppressed) return Conversions.str_to_scalar_enum(response, enums.ModScheme)