from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal.StructBase import StructBase
from .......Internal.ArgStruct import ArgStruct
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)
# noinspection PyTypeChecker
[docs]
class AclrStruct(StructBase):
"""Structure for setting input parameters. Contains optional setting parameters. 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 NR 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.
- Nr_Enable: bool: OFF | ON Enable or disable evaluation of first adjacent NR channels.
- Endc_Enable: bool: Optional setting parameter. OFF | ON Enable or disable evaluation of adjacent channel power in EN-DC mode."""
__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('Nr_Enable'),
ArgStruct.scalar_bool_optional('Endc_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.Nr_Enable: bool = None
self.Endc_Enable: bool = None
[docs]
def set(self, structure: AclrStruct, sEGMent=repcap.SEGMent.Default) -> None:
"""SCPI: CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:SEGMent<no>:ACLR \n
Snippet with structure: \n
structure = driver.configure.nrSubMeas.multiEval.listPy.segment.aclr.AclrStruct() \n
structure.Aclr_Statistics: int = 1 \n
structure.Aclr_Enable: bool = False \n
structure.Utra_1_Enable: bool = False \n
structure.Utra_2_Enable: bool = False \n
structure.Nr_Enable: bool = False \n
structure.Endc_Enable: bool = False \n
driver.configure.nrSubMeas.multiEval.listPy.segment.aclr.set(structure, sEGMent = repcap.SEGMent.Default) \n
Defines settings for ACLR measurements in list mode for segment <no>. \n
:param structure: for set value, see the help for AclrStruct structure arguments.
:param sEGMent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment')
"""
sEGMent_cmd_val = self._cmd_group.get_repcap_cmd_value(sEGMent, repcap.SEGMent)
self._core.io.write_struct(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:SEGMent{sEGMent_cmd_val}:ACLR', structure)
[docs]
def get(self, sEGMent=repcap.SEGMent.Default) -> AclrStruct:
"""SCPI: CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:SEGMent<no>:ACLR \n
Snippet: value: AclrStruct = driver.configure.nrSubMeas.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:NRSub:MEASurement<Instance>:MEValuation:LIST:SEGMent{sEGMent_cmd_val}:ACLR?', self.__class__.AclrStruct())