Source code for RsCMPX_Gprf.Implementations.Gprf.Measurement.Power.CumulativeDistribFnc.Power

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class PowerCls: """Power commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("power", core, parent) # noinspection PyTypeChecker
[docs] class FetchStruct(StructBase): """Response structure. Fields: \n - Reliability: int: See 'Reliability indicator' - Avg: float: Average power of all samples - Max_Py: float: Maximum power of all samples - Par: float: Peak to average ratio - Index_Avg_Power: int: Index of the average power 'bin'""" __meta_args_list = [ ArgStruct.scalar_int('Reliability', 'Reliability'), ArgStruct.scalar_float('Avg'), ArgStruct.scalar_float('Max_Py'), ArgStruct.scalar_float('Par'), ArgStruct.scalar_int('Index_Avg_Power')] def __init__(self): StructBase.__init__(self, self) self.Reliability: int = None self.Avg: float = None self.Max_Py: float = None self.Par: float = None self.Index_Avg_Power: int = None
[docs] def fetch(self) -> FetchStruct: """SCPI: FETCh:GPRF:MEASurement<Instance>:POWer:CCDF:POWer \n Snippet: value: FetchStruct = driver.gprf.measurement.power.cumulativeDistribFnc.power.fetch() \n Returns some statistic results for the power samples. \n :return: structure: for return value, see the help for FetchStruct structure arguments.""" return self._core.io.query_struct(f'FETCh:GPRF:MEASurement<Instance>:POWer:CCDF:POWer?', self.__class__.FetchStruct())