Source code for RsCmwWlanMeas.Implementations.MultiEval.Trace.Terror

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 .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class TerrorCls: """Terror commands group definition. 4 total commands, 1 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("terror", core, parent) @property def mimo(self): """mimo commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_mimo'): from .Mimo import MimoCls self._mimo = MimoCls(self._core, self._cmd_group) return self._mimo
[docs] def read(self, start: float = None, count: float = None, decimation: float = None) -> List[float]: """SCPI: READ:WLAN:MEASurement<Instance>:MEValuation:TRACe:TERRor \n Snippet: value: List[float] = driver.multiEval.trace.terror.read(start = 1.0, count = 1.0, decimation = 1.0) \n Return timing error traces. The number of results corresponds to the statistic count, see method RsCmwWlanMeas.Configure. MultiEval.Scount.powerVsTime. \n Use RsCmwWlanMeas.reliability.last_value to read the updated reliability indicator. \n :param start: numeric For the optional query parameters start, count and decimation, see 'Trace sub-arrays'. :param count: numeric For the optional query parameters start, count and decimation, see 'Trace sub-arrays'. :param decimation: numeric For the optional query parameters start, count and decimation, see 'Trace sub-arrays'. :return: te_times: float Comma-separated list of timing error values Unit: s""" param = ArgSingleList().compose_cmd_string(ArgSingle('start', start, DataType.Float, None, is_optional=True), ArgSingle('count', count, DataType.Float, None, is_optional=True), ArgSingle('decimation', decimation, DataType.Float, None, is_optional=True)) 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:TRACe:TERRor? {param}'.rstrip(), suppressed) return response
[docs] def fetch(self, start: float = None, count: float = None, decimation: float = None) -> List[float]: """SCPI: FETCh:WLAN:MEASurement<Instance>:MEValuation:TRACe:TERRor \n Snippet: value: List[float] = driver.multiEval.trace.terror.fetch(start = 1.0, count = 1.0, decimation = 1.0) \n Return timing error traces. The number of results corresponds to the statistic count, see method RsCmwWlanMeas.Configure. MultiEval.Scount.powerVsTime. \n Use RsCmwWlanMeas.reliability.last_value to read the updated reliability indicator. \n :param start: numeric For the optional query parameters start, count and decimation, see 'Trace sub-arrays'. :param count: numeric For the optional query parameters start, count and decimation, see 'Trace sub-arrays'. :param decimation: numeric For the optional query parameters start, count and decimation, see 'Trace sub-arrays'. :return: te_times: float Comma-separated list of timing error values Unit: s""" param = ArgSingleList().compose_cmd_string(ArgSingle('start', start, DataType.Float, None, is_optional=True), ArgSingle('count', count, DataType.Float, None, is_optional=True), ArgSingle('decimation', decimation, DataType.Float, None, is_optional=True)) 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:TRACe:TERRor? {param}'.rstrip(), suppressed) return response
def clone(self) -> 'TerrorCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = TerrorCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group