from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from .... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class WlanMeasCls:
"""WlanMeas commands group definition. 222 total commands, 6 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("wlanMeas", core, parent)
@property
def smimo(self):
"""smimo commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_smimo'):
from .Smimo import SmimoCls
self._smimo = SmimoCls(self._core, self._cmd_group)
return self._smimo
@property
def mimo(self):
"""mimo commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_mimo'):
from .Mimo import MimoCls
self._mimo = MimoCls(self._core, self._cmd_group)
return self._mimo
@property
def isignal(self):
"""isignal commands group. 3 Sub-classes, 9 commands."""
if not hasattr(self, '_isignal'):
from .Isignal import IsignalCls
self._isignal = IsignalCls(self._core, self._cmd_group)
return self._isignal
@property
def tmode(self):
"""tmode commands group. 1 Sub-classes, 1 commands."""
if not hasattr(self, '_tmode'):
from .Tmode import TmodeCls
self._tmode = TmodeCls(self._core, self._cmd_group)
return self._tmode
@property
def rfSettings(self):
"""rfSettings commands group. 6 Sub-classes, 4 commands."""
if not hasattr(self, '_rfSettings'):
from .RfSettings import RfSettingsCls
self._rfSettings = RfSettingsCls(self._core, self._cmd_group)
return self._rfSettings
@property
def multiEval(self):
"""multiEval commands group. 9 Sub-classes, 7 commands."""
if not hasattr(self, '_multiEval'):
from .MultiEval import MultiEvalCls
self._multiEval = MultiEvalCls(self._core, self._cmd_group)
return self._multiEval
# noinspection PyTypeChecker
[docs]
def get_mode(self) -> enums.TrainingMode:
"""SCPI: CONFigure:WLAN:MEASurement<Instance>:MODE \n
Snippet: value: enums.TrainingMode = driver.configure.wlanMeas.get_mode() \n
No command help available \n
:return: training_mode: No help available
"""
response = self._core.io.query_str('CONFigure:WLAN:MEASurement<Instance>:MODE?')
return Conversions.str_to_scalar_enum(response, enums.TrainingMode)
[docs]
def set_mode(self, training_mode: enums.TrainingMode) -> None:
"""SCPI: CONFigure:WLAN:MEASurement<Instance>:MODE \n
Snippet: driver.configure.wlanMeas.set_mode(training_mode = enums.TrainingMode.MMODe) \n
No command help available \n
:param training_mode: No help available
"""
param = Conversions.enum_scalar_to_str(training_mode, enums.TrainingMode)
self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MODE {param}')
def clone(self) -> 'WlanMeasCls':
"""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 = WlanMeasCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group