from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class MoffsetCls:
"""Moffset commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("moffset", core, parent)
[docs]
def set(self, meas_offset: float, segmentB=repcap.SegmentB.Default) -> None:
"""SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:SEGMent<segment>:MOFFset \n
Snippet: driver.configure.multiEval.listPy.segment.moffset.set(meas_offset = 1.0, segmentB = repcap.SegmentB.Default) \n
Specifies the measurement offset for segment <no> in list mode. \n
:param meas_offset: numeric Range: 0 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_offset)
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}:MOFFset {param}')
[docs]
def get(self, segmentB=repcap.SegmentB.Default) -> float:
"""SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:SEGMent<segment>:MOFFset \n
Snippet: value: float = driver.configure.multiEval.listPy.segment.moffset.get(segmentB = repcap.SegmentB.Default) \n
Specifies the measurement offset for segment <no> in list mode. \n
:param segmentB: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment')
:return: meas_offset: numeric Range: 0 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}:MOFFset?')
return Conversions.str_to_float(response)