Source code for RsCMPX_WcdmaMeas.Implementations.WcdmaMeas.MultiEval.Carrier.Trace.CdPower.Dpdch.Average

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, carrier=repcap.Carrier.Default) -> List[float]: """SCPI: READ:WCDMa:MEASurement<instance>:MEValuation:CARRier<carrier>:TRACe:CDPower:DPDCh:AVERage \n Snippet: value: List[float] = driver.wcdmaMeas.multiEval.carrier.trace.cdPower.dpdch.average.read(carrier = repcap.Carrier.Default) \n Returns the values of the RMS CDP vs slot traces for the DPCCH and the DPDCH. Each current value is averaged over a half-slot or a full-slot, depending on the measurement period (see method RsCMPX_WcdmaMeas.Configure.WcdmaMeas.MultiEval. Mperiod.modulation) . The number of results depends on the measurement length (see method RsCMPX_WcdmaMeas.Configure. WcdmaMeas.MultiEval.msCount) . The results of the current, average, minimum, maximum and standard deviation traces can be retrieved. The standard deviation traces cannot be displayed at the GUI. \n Suppressed linked return values: reliability \n :param carrier: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Carrier') :return: dpdch: RMS CDP trace results, one result per measured slot or half-slot""" carrier_cmd_val = self._cmd_group.get_repcap_cmd_value(carrier, repcap.Carrier) suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'READ:WCDMa:MEASurement<Instance>:MEValuation:CARRier{carrier_cmd_val}:TRACe:CDPower:DPDCh:AVERage?', suppressed) return response
[docs] def fetch(self, carrier=repcap.Carrier.Default) -> List[float]: """SCPI: FETCh:WCDMa:MEASurement<instance>:MEValuation:CARRier<carrier>:TRACe:CDPower:DPDCh:AVERage \n Snippet: value: List[float] = driver.wcdmaMeas.multiEval.carrier.trace.cdPower.dpdch.average.fetch(carrier = repcap.Carrier.Default) \n Returns the values of the RMS CDP vs slot traces for the DPCCH and the DPDCH. Each current value is averaged over a half-slot or a full-slot, depending on the measurement period (see method RsCMPX_WcdmaMeas.Configure.WcdmaMeas.MultiEval. Mperiod.modulation) . The number of results depends on the measurement length (see method RsCMPX_WcdmaMeas.Configure. WcdmaMeas.MultiEval.msCount) . The results of the current, average, minimum, maximum and standard deviation traces can be retrieved. The standard deviation traces cannot be displayed at the GUI. \n Suppressed linked return values: reliability \n :param carrier: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Carrier') :return: dpdch: RMS CDP trace results, one result per measured slot or half-slot""" carrier_cmd_val = self._cmd_group.get_repcap_cmd_value(carrier, repcap.Carrier) suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'FETCh:WCDMa:MEASurement<Instance>:MEValuation:CARRier{carrier_cmd_val}:TRACe:CDPower:DPDCh:AVERage?', suppressed) return response