Source code for RsCmwWlanMeas.Implementations.MultiEval.UtError.Margin.Minimum

from typing import List

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 MinimumCls: """Minimum commands group definition. 3 total commands, 0 Subgroups, 3 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("minimum", core, parent)
[docs] def read(self, utError=repcap.UtError.Default) -> List[float]: """SCPI: READ:WLAN:MEASurement<Instance>:MEValuation:UTERror<n>:MARGin:MINimum \n Snippet: value: List[float] = driver.multiEval.utError.margin.minimum.read(utError = repcap.UtError.Default) \n Returns the margin values of the unused tone error measurement for the current, average, minimum and maximum traces. A positive margin indicates a violation of the unused tone error limit line. The respective trace value is located above the upper limit line. The values described below are returned by FETCh and READ commands. CALCulate commands return limit check results instead, one value for each result listed below. \n Use RsCmwWlanMeas.reliability.last_value to read the updated reliability indicator. \n :param utError: optional repeated capability selector. Default value: Nr1 (settable in the interface 'UtError') :return: ute_margin: float Comma-separated list of margins to the unused tone error limits, one value per each 26-tone RU. The total number of RUs depends on the bandwidth, see table below. Unit: dB""" utError_cmd_val = self._cmd_group.get_repcap_cmd_value(utError, repcap.UtError) suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'READ:WLAN:MEASurement<Instance>:MEValuation:UTERror{utError_cmd_val}:MARGin:MINimum?', suppressed) return response
[docs] def fetch(self, utError=repcap.UtError.Default) -> List[float]: """SCPI: FETCh:WLAN:MEASurement<Instance>:MEValuation:UTERror<n>:MARGin:MINimum \n Snippet: value: List[float] = driver.multiEval.utError.margin.minimum.fetch(utError = repcap.UtError.Default) \n Returns the margin values of the unused tone error measurement for the current, average, minimum and maximum traces. A positive margin indicates a violation of the unused tone error limit line. The respective trace value is located above the upper limit line. The values described below are returned by FETCh and READ commands. CALCulate commands return limit check results instead, one value for each result listed below. \n Use RsCmwWlanMeas.reliability.last_value to read the updated reliability indicator. \n :param utError: optional repeated capability selector. Default value: Nr1 (settable in the interface 'UtError') :return: ute_margin: float Comma-separated list of margins to the unused tone error limits, one value per each 26-tone RU. The total number of RUs depends on the bandwidth, see table below. Unit: dB""" utError_cmd_val = self._cmd_group.get_repcap_cmd_value(utError, repcap.UtError) suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'FETCh:WLAN:MEASurement<Instance>:MEValuation:UTERror{utError_cmd_val}:MARGin:MINimum?', suppressed) return response
# noinspection PyTypeChecker
[docs] def calculate(self, utError=repcap.UtError.Default) -> List[enums.ResultStatus2]: """SCPI: CALCulate:WLAN:MEASurement<Instance>:MEValuation:UTERror<n>:MARGin:MINimum \n Snippet: value: List[enums.ResultStatus2] = driver.multiEval.utError.margin.minimum.calculate(utError = repcap.UtError.Default) \n Returns the margin values of the unused tone error measurement for the current, average, minimum and maximum traces. A positive margin indicates a violation of the unused tone error limit line. The respective trace value is located above the upper limit line. The values described below are returned by FETCh and READ commands. CALCulate commands return limit check results instead, one value for each result listed below. \n Use RsCmwWlanMeas.reliability.last_value to read the updated reliability indicator. \n :param utError: optional repeated capability selector. Default value: Nr1 (settable in the interface 'UtError') :return: ute_margin: float Comma-separated list of margins to the unused tone error limits, one value per each 26-tone RU. The total number of RUs depends on the bandwidth, see table below. Unit: dB""" utError_cmd_val = self._cmd_group.get_repcap_cmd_value(utError, repcap.UtError) suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_str_suppressed(f'CALCulate:WLAN:MEASurement<Instance>:MEValuation:UTERror{utError_cmd_val}:MARGin:MINimum?', suppressed) return Conversions.str_to_list_enum(response, enums.ResultStatus2)