from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ActLimitCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("actLimit", core, parent)
# noinspection PyTypeChecker
[docs]
def get_endc(self) -> enums.MevLimit:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:ACTLimit:ENDC`` \n
Snippet: ``value: enums.MevLimit = driver.configure.nrSubMeas.multiEval.limit.seMask.actLimit.get_endc()`` \n
Selects the active spectrum emission mask and OBW limit for EN-DC.
:return: limit: STD: use standard limits UDEF: use user-defined limits
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:ACTLimit:ENDC?')
return Conversions.str_to_scalar_enum(response, enums.MevLimit)
[docs]
def set_endc(self, limit: enums.MevLimit) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:ACTLimit:ENDC`` \n
Snippet: ``driver.configure.nrSubMeas.multiEval.limit.seMask.actLimit.set_endc(limit = enums.MevLimit.STD)`` \n
Selects the active spectrum emission mask and OBW limit for EN-DC.
:param limit: STD: use standard limits UDEF: use user-defined limits
"""
param = Conversions.enum_scalar_to_str(limit, enums.MevLimit)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:ACTLimit:ENDC {param}')
# noinspection PyTypeChecker
[docs]
def get_caggregation(self) -> enums.MevLimit:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:ACTLimit:CAGGregation`` \n
Snippet: ``value: enums.MevLimit = driver.configure.nrSubMeas.multiEval.limit.seMask.actLimit.get_caggregation()`` \n
Selects the active spectrum emission mask and OBW limit for NR SA with carrier aggregation.
:return: limit: STD: use standard limits UDEF: use user-defined limits
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:ACTLimit:CAGGregation?')
return Conversions.str_to_scalar_enum(response, enums.MevLimit)
[docs]
def set_caggregation(self, limit: enums.MevLimit) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:ACTLimit:CAGGregation`` \n
Snippet: ``driver.configure.nrSubMeas.multiEval.limit.seMask.actLimit.set_caggregation(limit = enums.MevLimit.STD)`` \n
Selects the active spectrum emission mask and OBW limit for NR SA with carrier aggregation.
:param limit: STD: use standard limits UDEF: use user-defined limits
"""
param = Conversions.enum_scalar_to_str(limit, enums.MevLimit)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:ACTLimit:CAGGregation {param}')