from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class MtimeCls:
"""Mtime commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mtime", core, parent)
[docs]
def set(self, meas_time: float, segmentB=repcap.SegmentB.Default) -> None:
"""SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:SEGMent<segment>:MTIMe \n
Snippet: driver.configure.multiEval.listPy.segment.mtime.set(meas_time = 1.0, segmentB = repcap.SegmentB.Default) \n
Specifies the measurement time for segment <no> in list mode. \n
:param meas_time: numeric Duration of measurement for the segment Range: 4E-4 s to 1 s
:param segmentB: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment')
"""
param = Conversions.decimal_value_to_str(meas_time)
segmentB_cmd_val = self._cmd_group.get_repcap_cmd_value(segmentB, repcap.SegmentB)
self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:SEGMent{segmentB_cmd_val}:MTIMe {param}')
[docs]
def get(self, segmentB=repcap.SegmentB.Default) -> float:
"""SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:SEGMent<segment>:MTIMe \n
Snippet: value: float = driver.configure.multiEval.listPy.segment.mtime.get(segmentB = repcap.SegmentB.Default) \n
Specifies the measurement time for segment <no> in list mode. \n
:param segmentB: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment')
:return: meas_time: numeric Duration of measurement for the segment Range: 4E-4 s to 1 s"""
segmentB_cmd_val = self._cmd_group.get_repcap_cmd_value(segmentB, repcap.SegmentB)
response = self._core.io.query_str(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:SEGMent{segmentB_cmd_val}:MTIMe?')
return Conversions.str_to_float(response)