Source code for RsCmwWlanMeas.Implementations.MultiEval.Trace.PowerVsTime.Mimo.Time

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 ...... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class TimeCls: """Time commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("time", core, parent)
[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:PVTime:MIMO<n>:TIME \n Snippet: value: List[float] = driver.multiEval.trace.powerVsTime.mimo.time.read(start = 1.0, count = 1.0, decimation = 1.0, mimo = repcap.Mimo.Default) \n Return the time indices for the current, average, minimum and maximum power vs time traces (for MIMO) , see method RsCmwWlanMeas.MultiEval.Trace.PowerVsTime.Mimo.Current.fetch etc. \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: time_values: float Comma-separated list of max 1024 time values (1024 values without subarrays) 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)) 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:PVTime:MIMO{mimo_cmd_val}:TIME? {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:PVTime:MIMO<n>:TIME \n Snippet: value: List[float] = driver.multiEval.trace.powerVsTime.mimo.time.fetch(start = 1.0, count = 1.0, decimation = 1.0, mimo = repcap.Mimo.Default) \n Return the time indices for the current, average, minimum and maximum power vs time traces (for MIMO) , see method RsCmwWlanMeas.MultiEval.Trace.PowerVsTime.Mimo.Current.fetch etc. \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: time_values: float Comma-separated list of max 1024 time values (1024 values without subarrays) 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)) 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:PVTime:MIMO{mimo_cmd_val}:TIME? {param}'.rstrip(), suppressed) return response