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 AverageCls:
"""Average commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("average", core, parent)
# noinspection PyTypeChecker
[docs]
class ResultData(StructBase):
"""Response structure. Fields: \n
- Reliability: int: 'Reliability indicator'
- Ue_Power: float: UE power
- Max_Output_Power: float: Maximum output power"""
__meta_args_list = [
ArgStruct.scalar_int('Reliability', 'Reliability'),
ArgStruct.scalar_float('Ue_Power'),
ArgStruct.scalar_float('Max_Output_Power')]
def __init__(self):
StructBase.__init__(self, self)
self.Reliability: int = None
self.Ue_Power: float = None
self.Max_Output_Power: float = None
[docs]
def fetch(self) -> ResultData:
"""SCPI: FETCh:WCDMa:MEASurement<instance>:TPC:TOTal:UEPower:AVERage \n
Snippet: value: ResultData = driver.wcdmaMeas.tpc.total.uePower.average.fetch() \n
Return the UE power and the maximum output power single value results over all carriers. The minimum, maximum and average
values of these results can be retrieved. \n
:return: structure: for return value, see the help for ResultData structure arguments."""
return self._core.io.query_struct(f'FETCh:WCDMa:MEASurement<Instance>:TPC:TOTal:UEPower:AVERage?', self.__class__.ResultData())
[docs]
def read(self) -> ResultData:
"""SCPI: READ:WCDMa:MEASurement<instance>:TPC:TOTal:UEPower:AVERage \n
Snippet: value: ResultData = driver.wcdmaMeas.tpc.total.uePower.average.read() \n
Return the UE power and the maximum output power single value results over all carriers. The minimum, maximum and average
values of these results can be retrieved. \n
:return: structure: for return value, see the help for ResultData structure arguments."""
return self._core.io.query_struct(f'READ:WCDMa:MEASurement<Instance>:TPC:TOTal:UEPower:AVERage?', self.__class__.ResultData())