Source code for RsCmwCdma2kMeas.Implementations.MultiEval_.ListPy_.Obw_.Frequency_.Current

from typing import List

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.ArgSingleSuppressed import ArgSingleSuppressed
from ......Internal.Types import DataType


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Current: """Current commands group definition. 2 total commands, 0 Sub-groups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("current", core, parent)
[docs] def fetch(self) -> List[float]: """SCPI: FETCh:CDMA:MEASurement<Instance>:MEValuation:LIST:OBW:FREQuency:CURRent \n Snippet: value: List[float] = driver.multiEval.listPy.obw.frequency.current.fetch() \n Returns the occupied bandwidth (statistical) values for all active list mode segments. The values described below are returned by FETCh commands. CALCulate commands return limit check results instead, one value for each result listed below. \n Use RsCmwCdma2kMeas.reliability.last_value to read the updated reliability indicator. \n :return: obw: float Comma-separated list of values, one per active segment. Range: 0 MHz to 8MHz (SDEViation 0 MHz to 4 MHz) , Unit: Hz""" suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'FETCh:CDMA:MEASurement<Instance>:MEValuation:LIST:OBW:FREQuency:CURRent?', suppressed) return response
[docs] def calculate(self) -> List[float]: """SCPI: CALCulate:CDMA:MEASurement<Instance>:MEValuation:LIST:OBW:FREQuency:CURRent \n Snippet: value: List[float] = driver.multiEval.listPy.obw.frequency.current.calculate() \n Returns the occupied bandwidth (statistical) values for all active list mode segments. The values described below are returned by FETCh commands. CALCulate commands return limit check results instead, one value for each result listed below. \n Use RsCmwCdma2kMeas.reliability.last_value to read the updated reliability indicator. \n :return: obw: float Comma-separated list of values, one per active segment. Range: 0 MHz to 8MHz (SDEViation 0 MHz to 4 MHz) , Unit: Hz""" suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'CALCulate:CDMA:MEASurement<Instance>:MEValuation:LIST:OBW:FREQuency:CURRent?', suppressed) return response