Source code for RsCmwLteMeas.Implementations.Configure.MultiEval.ListPy.Segment.Aclr

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 repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class AclrCls: """Aclr commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("aclr", core, parent)
[docs] def set(self, aclr_statistics: int, aclr_enable: bool, utra_1_enable: bool, utra_2_enable: bool, eutra_enable: bool, segment=repcap.Segment.Default) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent<nr>:ACLR \n Snippet: driver.configure.multiEval.listPy.segment.aclr.set(aclr_statistics = 1, aclr_enable = False, utra_1_enable = False, utra_2_enable = False, eutra_enable = False, segment = repcap.Segment.Default) \n Defines settings for ACLR measurements in list mode for segment <no>. \n :param aclr_statistics: integer Statistical length in slots Range: 1 to 1000 :param aclr_enable: OFF | ON Enable or disable the measurement of ACLR results. ON: ACLR results are measured according to the other enable flags in this command. ACLR results for which there is no explicit enable flag are also measured (e.g. power in assigned E-UTRA channel) . OFF: No ACLR results at all are measured. The other enable flags in this command are ignored. :param utra_1_enable: OFF | ON Enable or disable evaluation of first adjacent UTRA channels. :param utra_2_enable: OFF | ON Enable or disable evaluation of second adjacent UTRA channels. :param eutra_enable: OFF | ON Enable or disable evaluation of first adjacent E-UTRA channels. :param segment: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment') """ param = ArgSingleList().compose_cmd_string(ArgSingle('aclr_statistics', aclr_statistics, DataType.Integer), ArgSingle('aclr_enable', aclr_enable, DataType.Boolean), ArgSingle('utra_1_enable', utra_1_enable, DataType.Boolean), ArgSingle('utra_2_enable', utra_2_enable, DataType.Boolean), ArgSingle('eutra_enable', eutra_enable, DataType.Boolean)) segment_cmd_val = self._cmd_group.get_repcap_cmd_value(segment, repcap.Segment) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent{segment_cmd_val}:ACLR {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class AclrStruct(StructBase): """Response structure. Fields: \n - Aclr_Statistics: int: integer Statistical length in slots Range: 1 to 1000 - Aclr_Enable: bool: OFF | ON Enable or disable the measurement of ACLR results. ON: ACLR results are measured according to the other enable flags in this command. ACLR results for which there is no explicit enable flag are also measured (e.g. power in assigned E-UTRA channel) . OFF: No ACLR results at all are measured. The other enable flags in this command are ignored. - Utra_1_Enable: bool: OFF | ON Enable or disable evaluation of first adjacent UTRA channels. - Utra_2_Enable: bool: OFF | ON Enable or disable evaluation of second adjacent UTRA channels. - Eutra_Enable: bool: OFF | ON Enable or disable evaluation of first adjacent E-UTRA channels.""" __meta_args_list = [ ArgStruct.scalar_int('Aclr_Statistics'), ArgStruct.scalar_bool('Aclr_Enable'), ArgStruct.scalar_bool('Utra_1_Enable'), ArgStruct.scalar_bool('Utra_2_Enable'), ArgStruct.scalar_bool('Eutra_Enable')] def __init__(self): StructBase.__init__(self, self) self.Aclr_Statistics: int = None self.Aclr_Enable: bool = None self.Utra_1_Enable: bool = None self.Utra_2_Enable: bool = None self.Eutra_Enable: bool = None
[docs] def get(self, segment=repcap.Segment.Default) -> AclrStruct: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent<nr>:ACLR \n Snippet: value: AclrStruct = driver.configure.multiEval.listPy.segment.aclr.get(segment = repcap.Segment.Default) \n Defines settings for ACLR measurements in list mode for segment <no>. \n :param segment: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment') :return: structure: for return value, see the help for AclrStruct structure arguments.""" segment_cmd_val = self._cmd_group.get_repcap_cmd_value(segment, repcap.Segment) return self._core.io.query_struct(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent{segment_cmd_val}:ACLR?', self.__class__.AclrStruct())