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

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.StructBase import StructBase
from ......Internal.ArgStruct import ArgStruct
from ...... import enums
from ...... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class CurrentCls: """Current commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("current", core, parent) # noinspection PyTypeChecker
[docs] class FetchStruct(StructBase): """Response structure. Fields: \n - Reliability: int: decimal 'Reliability indicator' - Seg_Reliability: int: decimal Reliability indicator for the segment - Statist_Expired: int: decimal Reached statistical length in slots - Out_Of_Tolerance: int: decimal Percentage of measured subframes with failed limit check Unit: % - Utra_2_Neg: float: float ACLR for the second UTRA channel with lower frequency Unit: dB - Utra_1_Neg: float: float ACLR for the first UTRA channel with lower frequency Unit: dB - Eutra_Negativ: float: float ACLR for the first E-UTRA channel below the carrier frequency Unit: dB - Eutra: float: float Power in the allocated E-UTRA channel Unit: dBm - Eutra_Positiv: float: float ACLR for the first E-UTRA channel above the carrier frequency Unit: dB - Utra_1_Pos: float: float ACLR for the first UTRA channel with higher frequency Unit: dB - Utra_2_Pos: float: float ACLR for the second UTRA channel with higher frequency Unit: dB""" __meta_args_list = [ ArgStruct.scalar_int('Reliability', 'Reliability'), ArgStruct.scalar_int('Seg_Reliability'), ArgStruct.scalar_int('Statist_Expired'), ArgStruct.scalar_int('Out_Of_Tolerance'), ArgStruct.scalar_float('Utra_2_Neg'), ArgStruct.scalar_float('Utra_1_Neg'), ArgStruct.scalar_float('Eutra_Negativ'), ArgStruct.scalar_float('Eutra'), ArgStruct.scalar_float('Eutra_Positiv'), ArgStruct.scalar_float('Utra_1_Pos'), ArgStruct.scalar_float('Utra_2_Pos')] def __init__(self): StructBase.__init__(self, self) self.Reliability: int = None self.Seg_Reliability: int = None self.Statist_Expired: int = None self.Out_Of_Tolerance: int = None self.Utra_2_Neg: float = None self.Utra_1_Neg: float = None self.Eutra_Negativ: float = None self.Eutra: float = None self.Eutra_Positiv: float = None self.Utra_1_Pos: float = None self.Utra_2_Pos: float = None
[docs] def fetch(self, segment=repcap.Segment.Default) -> FetchStruct: """SCPI: FETCh:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent<nr>:ACLR:CURRent \n Snippet: value: FetchStruct = driver.multiEval.listPy.segment.aclr.current.fetch(segment = repcap.Segment.Default) \n Return ACLR single value results for segment <no> in list mode. The values described below are returned by FETCh commands. The first four values (reliability to out-of-tolerance result) are also returned by CALCulate commands. The remaining values returned by CALCulate commands are limit check results, one value for each result listed below. \n :param segment: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment') :return: structure: for return value, see the help for FetchStruct structure arguments.""" segment_cmd_val = self._cmd_group.get_repcap_cmd_value(segment, repcap.Segment) return self._core.io.query_struct(f'FETCh:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent{segment_cmd_val}:ACLR:CURRent?', self.__class__.FetchStruct())
# noinspection PyTypeChecker
[docs] class CalculateStruct(StructBase): """Response structure. Fields: \n - Reliability: int: decimal 'Reliability indicator' - Seg_Reliability: int: decimal Reliability indicator for the segment - Statist_Expired: int: decimal Reached statistical length in slots - Out_Of_Tolerance: int: decimal Percentage of measured subframes with failed limit check Unit: % - Utra_2_Neg: enums.ResultStatus2: float ACLR for the second UTRA channel with lower frequency Unit: dB - Utra_1_Neg: enums.ResultStatus2: float ACLR for the first UTRA channel with lower frequency Unit: dB - Eutra_Negativ: enums.ResultStatus2: float ACLR for the first E-UTRA channel below the carrier frequency Unit: dB - Eutra: enums.ResultStatus2: float Power in the allocated E-UTRA channel Unit: dBm - Eutra_Positiv: enums.ResultStatus2: float ACLR for the first E-UTRA channel above the carrier frequency Unit: dB - Utra_1_Pos: enums.ResultStatus2: float ACLR for the first UTRA channel with higher frequency Unit: dB - Utra_2_Pos: enums.ResultStatus2: float ACLR for the second UTRA channel with higher frequency Unit: dB""" __meta_args_list = [ ArgStruct.scalar_int('Reliability', 'Reliability'), ArgStruct.scalar_int('Seg_Reliability'), ArgStruct.scalar_int('Statist_Expired'), ArgStruct.scalar_int('Out_Of_Tolerance'), ArgStruct.scalar_enum('Utra_2_Neg', enums.ResultStatus2), ArgStruct.scalar_enum('Utra_1_Neg', enums.ResultStatus2), ArgStruct.scalar_enum('Eutra_Negativ', enums.ResultStatus2), ArgStruct.scalar_enum('Eutra', enums.ResultStatus2), ArgStruct.scalar_enum('Eutra_Positiv', enums.ResultStatus2), ArgStruct.scalar_enum('Utra_1_Pos', enums.ResultStatus2), ArgStruct.scalar_enum('Utra_2_Pos', enums.ResultStatus2)] def __init__(self): StructBase.__init__(self, self) self.Reliability: int = None self.Seg_Reliability: int = None self.Statist_Expired: int = None self.Out_Of_Tolerance: int = None self.Utra_2_Neg: enums.ResultStatus2 = None self.Utra_1_Neg: enums.ResultStatus2 = None self.Eutra_Negativ: enums.ResultStatus2 = None self.Eutra: enums.ResultStatus2 = None self.Eutra_Positiv: enums.ResultStatus2 = None self.Utra_1_Pos: enums.ResultStatus2 = None self.Utra_2_Pos: enums.ResultStatus2 = None
[docs] def calculate(self, segment=repcap.Segment.Default) -> CalculateStruct: """SCPI: CALCulate:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent<nr>:ACLR:CURRent \n Snippet: value: CalculateStruct = driver.multiEval.listPy.segment.aclr.current.calculate(segment = repcap.Segment.Default) \n Return ACLR single value results for segment <no> in list mode. The values described below are returned by FETCh commands. The first four values (reliability to out-of-tolerance result) are also returned by CALCulate commands. The remaining values returned by CALCulate commands are limit check results, one value for each result listed below. \n :param segment: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment') :return: structure: for return value, see the help for CalculateStruct structure arguments.""" segment_cmd_val = self._cmd_group.get_repcap_cmd_value(segment, repcap.Segment) return self._core.io.query_struct(f'CALCulate:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent{segment_cmd_val}:ACLR:CURRent?', self.__class__.CalculateStruct())