Source code for RsCmwWlanMeas.Implementations.Configure.MultiEval.Limit.SpectrFlatness.HeOfdm.Bw.Lower

from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal.Types import DataType
from ........Internal.StructBase import StructBase
from ........Internal.ArgStruct import ArgStruct
from ........Internal.ArgSingleList import ArgSingleList
from ........Internal.ArgSingle import ArgSingle
from ........ import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class LowerCls: """Lower commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("lower", core, parent)
[docs] def set(self, center: float, side: float, bandwidthD=repcap.BandwidthD.Default) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:SFLatness:HEOFdm:BW<bandwidth>:LOWer \n Snippet: driver.configure.multiEval.limit.spectrFlatness.heOfdm.bw.lower.set(center = 1.0, side = 1.0, bandwidthD = repcap.BandwidthD.Default) \n Defines the lower limits for the spectrum flatness of the center subcarriers and the side subcarriers for 802. 11ax signals with the specified <bandwidth>. The lower limits must be smaller than the upper limit. \n :param center: numeric Range: -20 dB to 4 dB, Unit: dB :param side: numeric Range: -20 dB to 4 dB, Unit: dB :param bandwidthD: optional repeated capability selector. Default value: Bw20 (settable in the interface 'Bw') """ param = ArgSingleList().compose_cmd_string(ArgSingle('center', center, DataType.Float), ArgSingle('side', side, DataType.Float)) bandwidthD_cmd_val = self._cmd_group.get_repcap_cmd_value(bandwidthD, repcap.BandwidthD) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:SFLatness:HEOFdm:BW{bandwidthD_cmd_val}:LOWer {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class LowerStruct(StructBase): """Response structure. Fields: \n - Center: float: numeric Range: -20 dB to 4 dB, Unit: dB - Side: float: numeric Range: -20 dB to 4 dB, Unit: dB""" __meta_args_list = [ ArgStruct.scalar_float('Center'), ArgStruct.scalar_float('Side')] def __init__(self): StructBase.__init__(self, self) self.Center: float = None self.Side: float = None
[docs] def get(self, bandwidthD=repcap.BandwidthD.Default) -> LowerStruct: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:SFLatness:HEOFdm:BW<bandwidth>:LOWer \n Snippet: value: LowerStruct = driver.configure.multiEval.limit.spectrFlatness.heOfdm.bw.lower.get(bandwidthD = repcap.BandwidthD.Default) \n Defines the lower limits for the spectrum flatness of the center subcarriers and the side subcarriers for 802. 11ax signals with the specified <bandwidth>. The lower limits must be smaller than the upper limit. \n :param bandwidthD: optional repeated capability selector. Default value: Bw20 (settable in the interface 'Bw') :return: structure: for return value, see the help for LowerStruct structure arguments.""" bandwidthD_cmd_val = self._cmd_group.get_repcap_cmd_value(bandwidthD, repcap.BandwidthD) return self._core.io.query_struct(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:SFLatness:HEOFdm:BW{bandwidthD_cmd_val}:LOWer?', self.__class__.LowerStruct())