from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class McsIndexCls:
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mcsIndex", core, parent)
@property
def mode(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_mode'):
from .Mode import ModeCls
self._mode = ModeCls(self._core, self._cmd_group)
return self._mode
[docs]
def set(self, index: float) -> None:
"""
``[SENSe]:DEMod:FORMat:MCSindex`` \n
Snippet: ``driver.applications.k91Wlan.sense.demod.formatPy.mcsIndex.set(index = 1.0)`` \n
Specifies the MCS index which controls the data rate, modulation and streams (for IEEE 802.11n, ac standards only, see
document: IEEE 802.11n/D11.0 June 2009) . Is required if method
``RsFsw.applications.k91Wlan.sense.demod.formatPy.mcsIndex.mode.set()`` is set to MEAS or DEM.
:param index: Range: 0 to 11
"""
param = Conversions.decimal_value_to_str(index)
self._core.io.write(f'SENSe:DEMod:FORMat:MCSindex {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:DEMod:FORMat:MCSindex`` \n
Snippet: ``value: float = driver.applications.k91Wlan.sense.demod.formatPy.mcsIndex.get()`` \n
Specifies the MCS index which controls the data rate, modulation and streams (for IEEE 802.11n, ac standards only, see
document: IEEE 802.11n/D11.0 June 2009) . Is required if method
``RsFsw.applications.k91Wlan.sense.demod.formatPy.mcsIndex.mode.set()`` is set to MEAS or DEM.
:return: index: Range: 0 to 11
"""
response = self._core.io.query_str(f'SENSe:DEMod:FORMat:MCSindex?')
return Conversions.str_to_float(response)
def clone(self) -> 'McsIndexCls':
"""
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 = McsIndexCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group