from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
from ......... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class DCls:
"""D commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("d", core, parent)
[docs]
def set(self, tsm_lim_yrel_lev_d: float, bandwidthD=repcap.BandwidthD.Default) -> None:
"""SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:TSMask:HEOFdm:BW<bandwidth>:Y:D \n
Snippet: driver.configure.multiEval.limit.tsMask.heOfdm.bw.y.d.set(tsm_lim_yrel_lev_d = 1.0, bandwidthD = repcap.BandwidthD.Default) \n
Defines the relative spectral density limit for point D (center frequency offset: 1/2*bandwidth + 1 MHz) on the transmit
spectrum mask for 802.11ax signals with the specified <bandwidth>. See 'Transmit spectrum mask OFDM, default masks' for
background information. \n
:param tsm_lim_yrel_lev_d: numeric Range: -90 dB to 10 dB
:param bandwidthD: optional repeated capability selector. Default value: Bw20 (settable in the interface 'Bw')
"""
param = Conversions.decimal_value_to_str(tsm_lim_yrel_lev_d)
bandwidthD_cmd_val = self._cmd_group.get_repcap_cmd_value(bandwidthD, repcap.BandwidthD)
self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:TSMask:HEOFdm:BW{bandwidthD_cmd_val}:Y:D {param}')
[docs]
def get(self, bandwidthD=repcap.BandwidthD.Default) -> float:
"""SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:TSMask:HEOFdm:BW<bandwidth>:Y:D \n
Snippet: value: float = driver.configure.multiEval.limit.tsMask.heOfdm.bw.y.d.get(bandwidthD = repcap.BandwidthD.Default) \n
Defines the relative spectral density limit for point D (center frequency offset: 1/2*bandwidth + 1 MHz) on the transmit
spectrum mask for 802.11ax signals with the specified <bandwidth>. See 'Transmit spectrum mask OFDM, default masks' for
background information. \n
:param bandwidthD: optional repeated capability selector. Default value: Bw20 (settable in the interface 'Bw')
:return: tsm_lim_yrel_lev_d: numeric Range: -90 dB to 10 dB"""
bandwidthD_cmd_val = self._cmd_group.get_repcap_cmd_value(bandwidthD, repcap.BandwidthD)
response = self._core.io.query_str(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIMit:TSMask:HEOFdm:BW{bandwidthD_cmd_val}:Y:D?')
return Conversions.str_to_float(response)