Source code for RsCMPX_NrFr1Meas.Implementations.NrSubMeas.MultiEval.SeMask.Margin.Average.Positiv

from typing import List

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PositivCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("positiv", core, parent)

	# noinspection PyTypeChecker
[docs] class FetchStruct(StructBase): """ Response structure. Fields: \n - 1 Reliability: int: 'Reliability indicator' - 2 Out_Of_Tolerance: int: Out of tolerance result, i.e. the percentage of measurement intervals of the statistic count for spectrum emission measurements exceeding the specified spectrum emission mask limits. - 3 Margin_Avg_Pos_X: List[float]: X-position of the margin of an area - 4 Margin_Avg_Pos_Y: List[float]: Y-value of the margin of an area """ __meta_args_list = [ ArgStruct.scalar_int('Reliability', 'Reliability'), ArgStruct.scalar_int('Out_Of_Tolerance'), ArgStruct('Margin_Avg_Pos_X', DataType.FloatList, None, False, True, 1), ArgStruct('Margin_Avg_Pos_Y', DataType.FloatList, None, False, True, 1)] def __init__(self): StructBase.__init__(self, self) self.Reliability: int = None self.Out_Of_Tolerance: int = None self.Margin_Avg_Pos_X: List[float] = None self.Margin_Avg_Pos_Y: List[float] = None
[docs] def fetch(self) -> FetchStruct: """ ``FETCh:NRSub:MEASurement<Instance>:MEValuation:SEMask:MARGin:AVERage:POSitiv`` \n Snippet: ``value: FetchStruct = driver.nrSubMeas.multiEval.seMask.margin.average.positiv.fetch()`` \n Returns spectrum emission mask margin results. A negative margin indicates that the trace is located above the limit line, i.e. the limit is exceeded. The individual commands provide results for the CURRent, AVERage and maximum traces (resulting in MINimum margins) . For each trace, the x-value and the y-value of the margins for emission mask areas 1 to 12 are provided for NEGative and POSitive offset frequencies. For inactive areas, NCAP is returned. Returned sequence: <Reliability>, <OutOfTolerance>, {<MarginX>, <MarginY>}area1, {...}area2, ..., {...}area12 :return: structure: for return value, see the help for FetchStruct structure arguments. """ return self._core.io.query_struct(f'FETCh:NRSub:MEASurement<Instance>:MEValuation:SEMask:MARGin:AVERage:POSitiv?', self.__class__.FetchStruct())