Source code for RsCmwWlanMeas.Implementations.MultiEval.Trace.TsMask.Mask.Mimo

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
from .......Internal.RepeatedCapability import RepeatedCapability
from ....... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class MimoCls: """Mimo commands group definition. 4 total commands, 1 Subgroups, 2 group commands Repeated Capability: Mimo, default value after init: Mimo.Nr1""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("mimo", core, parent) self._cmd_group.rep_cap = RepeatedCapability(self._cmd_group.group_name, 'repcap_mimo_get', 'repcap_mimo_set', repcap.Mimo.Nr1) def repcap_mimo_set(self, mimo: repcap.Mimo) -> None: """Repeated Capability default value numeric suffix. This value is used, if you do not explicitely set it in the child set/get methods, or if you leave it to Mimo.Default Default value after init: Mimo.Nr1""" self._cmd_group.set_repcap_enum_value(mimo) def repcap_mimo_get(self) -> repcap.Mimo: """Returns the current default repeated capability for the child set/get methods""" # noinspection PyTypeChecker return self._cmd_group.get_repcap_enum_value() @property def segment(self): """segment commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_segment'): from .Segment import SegmentCls self._segment = SegmentCls(self._core, self._cmd_group) return self._segment
[docs] def read(self, start: float = None, count: float = None, decimation: float = None, mimo=repcap.Mimo.Default) -> List[float]: """SCPI: READ:WLAN:MEASurement<Instance>:MEValuation:TRACe:TSMask:MASK:MIMO<n> \n Snippet: value: List[float] = driver.multiEval.trace.tsMask.mask.mimo.read(start = 1.0, count = 1.0, decimation = 1.0, mimo = repcap.Mimo.Default) \n Return the power values (Y-values) of the transmit spectrum mask limit line trace, for MIMO measurements, antenna <n>, bandwidths with one segment. \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'. :param mimo: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Mimo') :return: spec_trace_mask_tx: float Comma-separated list of power values, trace from left to right Unit: dB""" 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)) mimo_cmd_val = self._cmd_group.get_repcap_cmd_value(mimo, repcap.Mimo) 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:TSMask:MASK:MIMO{mimo_cmd_val}? {param}'.rstrip(), suppressed) return response
[docs] def fetch(self, start: float = None, count: float = None, decimation: float = None, mimo=repcap.Mimo.Default) -> List[float]: """SCPI: FETCh:WLAN:MEASurement<Instance>:MEValuation:TRACe:TSMask:MASK:MIMO<n> \n Snippet: value: List[float] = driver.multiEval.trace.tsMask.mask.mimo.fetch(start = 1.0, count = 1.0, decimation = 1.0, mimo = repcap.Mimo.Default) \n Return the power values (Y-values) of the transmit spectrum mask limit line trace, for MIMO measurements, antenna <n>, bandwidths with one segment. \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'. :param mimo: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Mimo') :return: spec_trace_mask_tx: float Comma-separated list of power values, trace from left to right Unit: dB""" 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)) mimo_cmd_val = self._cmd_group.get_repcap_cmd_value(mimo, repcap.Mimo) 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:TSMask:MASK:MIMO{mimo_cmd_val}? {param}'.rstrip(), suppressed) return response
def clone(self) -> 'MimoCls': """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 = MimoCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group