Source code for RsCmwWcdmaMeas.Implementations.Tpc_.Dhib_.Statistics

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.ArgSingleSuppressed import ArgSingleSuppressed
from ....Internal.Types import DataType


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Statistics: """Statistics commands group definition. 2 total commands, 0 Sub-groups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("statistics", core, parent)
[docs] def read(self) -> float: """SCPI: READ:WCDMa:MEASurement<instance>:TPC:DHIB:STATistics \n Snippet: value: float = driver.tpc.dhib.statistics.read() \n Return the 'Statistics' values, indicating how many trace values have been considered to derive the maximum, minimum and average dual carrier in-band emission results. The number to the left of each result parameter is provided for easy identification of the parameter position within the result array. \n Use RsCmwWcdmaMeas.reliability.last_value to read the updated reliability indicator. \n :return: statistics: float Range: 0 to 1000""" suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_str_suppressed(f'READ:WCDMa:MEASurement<Instance>:TPC:DHIB:STATistics?', suppressed) return Conversions.str_to_float(response)
[docs] def fetch(self) -> float: """SCPI: FETCh:WCDMa:MEASurement<instance>:TPC:DHIB:STATistics \n Snippet: value: float = driver.tpc.dhib.statistics.fetch() \n Return the 'Statistics' values, indicating how many trace values have been considered to derive the maximum, minimum and average dual carrier in-band emission results. The number to the left of each result parameter is provided for easy identification of the parameter position within the result array. \n Use RsCmwWcdmaMeas.reliability.last_value to read the updated reliability indicator. \n :return: statistics: float Range: 0 to 1000""" suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_str_suppressed(f'FETCh:WCDMa:MEASurement<Instance>:TPC:DHIB:STATistics?', suppressed) return Conversions.str_to_float(response)