Source code for RsCmwWlanMeas.Implementations.Configure.MultiEval.Limit.TsMask.Pofdm.Bw.Enable

from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........ import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class EnableCls: """Enable commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("enable", core, parent)
[docs] def set(self, tsm_lim_enable: bool, bandwidthB=repcap.BandwidthB.Bw5) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:TSMask:POFDm:BW<bandwidth>:ENABle \n Snippet: driver.configure.multiEval.limit.tsMask.pofdm.bw.enable.set(tsm_lim_enable = False, bandwidthB = repcap.BandwidthB.Bw5) \n Activates or deactivates the transmit spectrum mask limit check for 802.11p signals with the specified <bandwidth>. \n :param tsm_lim_enable: OFF | ON :param bandwidthB: optional repeated capability selector. Default value: Bw5 """ param = Conversions.bool_to_str(tsm_lim_enable) bandwidthB_cmd_val = self._cmd_group.get_repcap_cmd_value(bandwidthB, repcap.BandwidthB) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:TSMask:POFDm:BW{bandwidthB_cmd_val}:ENABle {param}')
[docs] def get(self, bandwidthB=repcap.BandwidthB.Bw5) -> bool: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:TSMask:POFDm:BW<bandwidth>:ENABle \n Snippet: value: bool = driver.configure.multiEval.limit.tsMask.pofdm.bw.enable.get(bandwidthB = repcap.BandwidthB.Bw5) \n Activates or deactivates the transmit spectrum mask limit check for 802.11p signals with the specified <bandwidth>. \n :param bandwidthB: optional repeated capability selector. Default value: Bw5 :return: tsm_lim_enable: OFF | ON""" bandwidthB_cmd_val = self._cmd_group.get_repcap_cmd_value(bandwidthB, repcap.BandwidthB) response = self._core.io.query_str(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:TSMask:POFDm:BW{bandwidthB_cmd_val}:ENABle?') return Conversions.str_to_bool(response)