from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ObwLimitCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("obwLimit", core, parent)
[docs]
def get_endc(self) -> float | bool:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:STANdard:OBWLimit:ENDC`` \n
Snippet: ``value: float | bool = driver.configure.nrSubMeas.multiEval.limit.seMask.standard.obwLimit.get_endc()`` \n
Configures the activation state of the standard OBW limit for EN-DC measurements.
:return: obw_limit: (float or boolean) A setting allows only ON | OFF. A query returns the limit value instead of ON (numeric | OFF) .
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:STANdard:OBWLimit:ENDC?')
return Conversions.str_to_float_or_bool(response)
[docs]
def set_endc(self, obw_limit: float | bool) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:STANdard:OBWLimit:ENDC`` \n
Snippet: ``driver.configure.nrSubMeas.multiEval.limit.seMask.standard.obwLimit.set_endc(obw_limit = 1.0)`` \n
Configures the activation state of the standard OBW limit for EN-DC measurements.
:param obw_limit: (float or boolean) A setting allows only ON | OFF. A query returns the limit value instead of ON (numeric | OFF) .
"""
param = Conversions.decimal_or_bool_value_to_str(obw_limit)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:STANdard:OBWLimit:ENDC {param}')
[docs]
def get_caggregation(self) -> float | bool:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:STANdard:OBWLimit:CAGGregation`` \n
Snippet: ``value: float | bool = driver.configure.nrSubMeas.multiEval.limit.seMask.standard.obwLimit.get_caggregation()`` \n
Configures the activation state of the standard OBW limit for carrier aggregation measurements.
:return: obw_limit: (float or boolean) A setting allows only ON | OFF. A query returns the limit value instead of ON (numeric | OFF) .
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:STANdard:OBWLimit:CAGGregation?')
return Conversions.str_to_float_or_bool(response)
[docs]
def set_caggregation(self, obw_limit: float | bool) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:STANdard:OBWLimit:CAGGregation`` \n
Snippet: ``driver.configure.nrSubMeas.multiEval.limit.seMask.standard.obwLimit.set_caggregation(obw_limit = 1.0)`` \n
Configures the activation state of the standard OBW limit for carrier aggregation measurements.
:param obw_limit: (float or boolean) A setting allows only ON | OFF. A query returns the limit value instead of ON (numeric | OFF) .
"""
param = Conversions.decimal_or_bool_value_to_str(obw_limit)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:STANdard:OBWLimit:CAGGregation {param}')