from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
from ......... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AverageCls:
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("average", core, parent)
@property
def result(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_result'):
from .Result import ResultCls
self._result = ResultCls(self._core, self._cmd_group)
return self._result
[docs]
def set(self, limit: float, window=repcap.Window.Default, limitIx=repcap.LimitIx.Default) -> None:
"""
``CALCulate<n>:LIMit<li>:BURSt:EVM[:AVERage]`` \n
Snippet: ``driver.applications.k91Wlan.calculate.limit.burst.evm.average.set(limit = 1.0, window = repcap.Window.Default, limitIx = repcap.LimitIx.Default)`` \n
Sets or queries the average or maximum error vector magnitude limit determined by the default WLAN measurement.
For details see 'Modulation accuracy, flatness and tolerance parameters'. Is only available for IEEE 802.11b and g (DSSS)
.
:param limit: numeric value in dB The unit for the EVM parameters can be changed in advance using method ``RsFsw.applications.k10Xlte.unit.evm.set()`` . Unit: PCT
:param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate')
:param limitIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Limit')
"""
param = Conversions.decimal_value_to_str(limit)
window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window)
limitIx_cmd_val = self._cmd_group.get_repcap_cmd_value(limitIx, repcap.LimitIx)
self._core.io.write(f'CALCulate{window_cmd_val}:LIMit{limitIx_cmd_val}:BURSt:EVM:AVERage {param}')
[docs]
def get(self, window=repcap.Window.Default, limitIx=repcap.LimitIx.Default) -> float:
"""
``CALCulate<n>:LIMit<li>:BURSt:EVM[:AVERage]`` \n
Snippet: ``value: float = driver.applications.k91Wlan.calculate.limit.burst.evm.average.get(window = repcap.Window.Default, limitIx = repcap.LimitIx.Default)`` \n
Sets or queries the average or maximum error vector magnitude limit determined by the default WLAN measurement.
For details see 'Modulation accuracy, flatness and tolerance parameters'. Is only available for IEEE 802.11b and g (DSSS)
.
:param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate')
:param limitIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Limit')
:return: limit: numeric value in dB The unit for the EVM parameters can be changed in advance using method ``RsFsw.applications.k10Xlte.unit.evm.set()`` . Unit: PCT
"""
window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window)
limitIx_cmd_val = self._cmd_group.get_repcap_cmd_value(limitIx, repcap.LimitIx)
response = self._core.io.query_str(f'CALCulate{window_cmd_val}:LIMit{limitIx_cmd_val}:BURSt:EVM:AVERage?')
return Conversions.str_to_float(response)
def clone(self) -> 'AverageCls':
"""
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 = AverageCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group