Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.MultiEval.Limit.SeMask.UserDefined.Area.Caggregation

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 enums
from ......... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class CaggregationCls: """Caggregation commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("caggregation", core, parent)
[docs] def set(self, enable: bool, frequency_start: float, frequency_end: float, level: float, rbw: enums.RbwC, area=repcap.Area.Default) -> None: """SCPI: CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:UDEFined:AREA<nr>:CAGGregation \n Snippet: driver.configure.nrSubMeas.multiEval.limit.seMask.userDefined.area.caggregation.set(enable = False, frequency_start = 1.0, frequency_end = 1.0, level = 1.0, rbw = enums.RbwC.K030, area = repcap.Area.Default) \n Defines general requirements for area number <no> of the user-defined emission mask for NR SA with carrier aggregation. The activation state, the area borders, an upper limit and the resolution bandwidth must be specified. \n :param enable: OFF: Disables the check of these requirements. ON: Enables the check of these requirements. :param frequency_start: Start frequency of the area, relative to the edges of the aggregated channel bandwidth. :param frequency_end: Stop frequency of the area, relative to the edges of the aggregated channel bandwidth. :param level: Upper limit for the area :param rbw: Resolution bandwidth to be used for the area K030: 30 kHz K400: 400 kHz M1: 1 MHz :param area: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Area') """ param = ArgSingleList().compose_cmd_string(ArgSingle('enable', enable, DataType.Boolean), ArgSingle('frequency_start', frequency_start, DataType.Float), ArgSingle('frequency_end', frequency_end, DataType.Float), ArgSingle('level', level, DataType.Float), ArgSingle('rbw', rbw, DataType.Enum, enums.RbwC)) area_cmd_val = self._cmd_group.get_repcap_cmd_value(area, repcap.Area) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:UDEFined:AREA{area_cmd_val}:CAGGregation {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class CaggregationStruct(StructBase): """Response structure. Fields: \n - Enable: bool: OFF: Disables the check of these requirements. ON: Enables the check of these requirements. - Frequency_Start: float: Start frequency of the area, relative to the edges of the aggregated channel bandwidth. - Frequency_End: float: Stop frequency of the area, relative to the edges of the aggregated channel bandwidth. - Level: float: Upper limit for the area - Rbw: enums.RbwC: Resolution bandwidth to be used for the area K030: 30 kHz K400: 400 kHz M1: 1 MHz""" __meta_args_list = [ ArgStruct.scalar_bool('Enable'), ArgStruct.scalar_float('Frequency_Start'), ArgStruct.scalar_float('Frequency_End'), ArgStruct.scalar_float('Level'), ArgStruct.scalar_enum('Rbw', enums.RbwC)] def __init__(self): StructBase.__init__(self, self) self.Enable: bool = None self.Frequency_Start: float = None self.Frequency_End: float = None self.Level: float = None self.Rbw: enums.RbwC = None
[docs] def get(self, area=repcap.Area.Default) -> CaggregationStruct: """SCPI: CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:UDEFined:AREA<nr>:CAGGregation \n Snippet: value: CaggregationStruct = driver.configure.nrSubMeas.multiEval.limit.seMask.userDefined.area.caggregation.get(area = repcap.Area.Default) \n Defines general requirements for area number <no> of the user-defined emission mask for NR SA with carrier aggregation. The activation state, the area borders, an upper limit and the resolution bandwidth must be specified. \n :param area: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Area') :return: structure: for return value, see the help for CaggregationStruct structure arguments.""" area_cmd_val = self._cmd_group.get_repcap_cmd_value(area, repcap.Area) return self._core.io.query_struct(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:UDEFined:AREA{area_cmd_val}:CAGGregation?', self.__class__.CaggregationStruct())