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, segment=repcap.Segment.Default) -> List[float]:
"""SCPI: READ:WLAN:MEASurement<Instance>:MEValuation:TRACe:PVTime:REDGe:SEGMent<seg>:TIME \n
Snippet: value: List[float] = driver.wlanMeas.multiEval.trace.powerVsTime.risingEdge.segment.time.read(start = 1.0, count = 1.0, decimation = 1.0, segment = repcap.Segment.Default) \n
Return the time indices for the power vs time ramp traces, rising edge (REDGe) and falling edge (FEDGe) for SISO
measurements and bandwidths > 160 MHz. The results are available for the left 160 MHz segment <1> and for the right 160
MHz segment <2>. Refer to method RsCMPX_WlanMeas.WlanMeas.MultiEval.Trace.PowerVsTime.FallingEdge.Segment.Current.fetch
etc. \n
Suppressed linked return values: reliability \n
:param start: For the optional query parameters start, count and decimation, see 'Trace subarrays'.
:param count: For the optional query parameters start, count and decimation, see 'Trace subarrays'.
:param decimation: For the optional query parameters start, count and decimation, see 'Trace subarrays'.
:param segment: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment')
:return: time_values: Comma-separated list of time indices corresponding to the ramp power results."""
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))
segment_cmd_val = self._cmd_group.get_repcap_cmd_value(segment, repcap.Segment)
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:REDGe:SEGMent{segment_cmd_val}:TIME? {param}'.rstrip(), suppressed)
return response
[docs]
def fetch(self, start: float = None, count: float = None, decimation: float = None, segment=repcap.Segment.Default) -> List[float]:
"""SCPI: FETCh:WLAN:MEASurement<Instance>:MEValuation:TRACe:PVTime:REDGe:SEGMent<seg>:TIME \n
Snippet: value: List[float] = driver.wlanMeas.multiEval.trace.powerVsTime.risingEdge.segment.time.fetch(start = 1.0, count = 1.0, decimation = 1.0, segment = repcap.Segment.Default) \n
Return the time indices for the power vs time ramp traces, rising edge (REDGe) and falling edge (FEDGe) for SISO
measurements and bandwidths > 160 MHz. The results are available for the left 160 MHz segment <1> and for the right 160
MHz segment <2>. Refer to method RsCMPX_WlanMeas.WlanMeas.MultiEval.Trace.PowerVsTime.FallingEdge.Segment.Current.fetch
etc. \n
Suppressed linked return values: reliability \n
:param start: For the optional query parameters start, count and decimation, see 'Trace subarrays'.
:param count: For the optional query parameters start, count and decimation, see 'Trace subarrays'.
:param decimation: For the optional query parameters start, count and decimation, see 'Trace subarrays'.
:param segment: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment')
:return: time_values: Comma-separated list of time indices corresponding to the ramp power results."""
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))
segment_cmd_val = self._cmd_group.get_repcap_cmd_value(segment, repcap.Segment)
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:REDGe:SEGMent{segment_cmd_val}:TIME? {param}'.rstrip(), suppressed)
return response