from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class MaxCls:
"""Max commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("max", core, parent)
[docs] def set(self, num_data_bytes: float) -> None:
"""SCPI: [SENSe]:DEMod:FORMat:BANalyze:DBYTes:MAX \n
Snippet: driver.applications.k91Wlan.sense.demod.formatPy.banalyze.dbytes.max.set(num_data_bytes = 1.0) \n
If the [SENSe:]DEMod:FORMat:BANalyze:DBYTes:EQUal command is set to false, this command specifies the maximum number of
data bytes allowed for a PPDU to take part in measurement analysis. If the [SENSe:]DEMod:FORMat:BANalyze:DBYTes:EQUal
command is set to true, then this command has no effect. \n
:param num_data_bytes: Unit: bytes
"""
param = Conversions.decimal_value_to_str(num_data_bytes)
self._core.io.write(f'SENSe:DEMod:FORMat:BANalyze:DBYTes:MAX {param}')
[docs] def get(self) -> float:
"""SCPI: [SENSe]:DEMod:FORMat:BANalyze:DBYTes:MAX \n
Snippet: value: float = driver.applications.k91Wlan.sense.demod.formatPy.banalyze.dbytes.max.get() \n
If the [SENSe:]DEMod:FORMat:BANalyze:DBYTes:EQUal command is set to false, this command specifies the maximum number of
data bytes allowed for a PPDU to take part in measurement analysis. If the [SENSe:]DEMod:FORMat:BANalyze:DBYTes:EQUal
command is set to true, then this command has no effect. \n
:return: num_data_bytes: Unit: bytes"""
response = self._core.io.query_str(f'SENSe:DEMod:FORMat:BANalyze:DBYTes:MAX?')
return Conversions.str_to_float(response)