Source code for RsCmwWlanMeas.Implementations.Configure.MultiEval.Limit.SpectrFlatness.Lofdm

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class LofdmCls: """Lofdm commands group definition. 3 total commands, 1 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("lofdm", core, parent) @property def lower(self): """lower commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_lower'): from .Lower import LowerCls self._lower = LowerCls(self._core, self._cmd_group) return self._lower
[docs] def get_enable(self) -> bool: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:SFLatness:LOFDm:ENABle \n Snippet: value: bool = driver.configure.multiEval.limit.spectrFlatness.lofdm.get_enable() \n Enables or disables the spectrum flatness limit check for 802.11a/g OFDM signals. \n :return: enable: OFF | ON """ response = self._core.io.query_str('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:SFLatness:LOFDm:ENABle?') return Conversions.str_to_bool(response)
[docs] def set_enable(self, enable: bool) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:SFLatness:LOFDm:ENABle \n Snippet: driver.configure.multiEval.limit.spectrFlatness.lofdm.set_enable(enable = False) \n Enables or disables the spectrum flatness limit check for 802.11a/g OFDM signals. \n :param enable: OFF | ON """ param = Conversions.bool_to_str(enable) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:SFLatness:LOFDm:ENABle {param}')
[docs] def get_upper(self) -> float: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:SFLatness:LOFDm:UPPer \n Snippet: value: float = driver.configure.multiEval.limit.spectrFlatness.lofdm.get_upper() \n Defines an upper limit for the spectrum flatness of 802.11a/g OFDM signals. The upper limit must be larger than the lower limits. \n :return: upper: numeric Range: -4 dB to 20 dB """ response = self._core.io.query_str('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:SFLatness:LOFDm:UPPer?') return Conversions.str_to_float(response)
[docs] def set_upper(self, upper: float) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:SFLatness:LOFDm:UPPer \n Snippet: driver.configure.multiEval.limit.spectrFlatness.lofdm.set_upper(upper = 1.0) \n Defines an upper limit for the spectrum flatness of 802.11a/g OFDM signals. The upper limit must be larger than the lower limits. \n :param upper: numeric Range: -4 dB to 20 dB """ param = Conversions.decimal_value_to_str(upper) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:SFLatness:LOFDm:UPPer {param}')
def clone(self) -> 'LofdmCls': """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 = LofdmCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group