Source code for RsCMPX_NrFr1Meas.Implementations.NrSubMeas.Tpc.Trace.TxPower.Current

from typing import List

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


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

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

[docs] def read(self) -> List[float]: """ ``READ:NRSub:MEASurement<Instance>:TPC:TRACe:TXPower:CURRent`` \n Snippet: ``value: List[float] = driver.nrSubMeas.tpc.trace.txPower.current.read()`` \n Returns the contents of the PUSCH power vs subframe diagram. See also 'Upper diagram'. Suppressed linked return values: reliability :return: power: Comma-separated list of absolute power values, one value per UL subframe. """ suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'READ:NRSub:MEASurement<Instance>:TPC:TRACe:TXPower:CURRent?', suppressed) return response
[docs] def fetch(self) -> List[float]: """ ``FETCh:NRSub:MEASurement<Instance>:TPC:TRACe:TXPower:CURRent`` \n Snippet: ``value: List[float] = driver.nrSubMeas.tpc.trace.txPower.current.fetch()`` \n Returns the contents of the PUSCH power vs subframe diagram. See also 'Upper diagram'. Suppressed linked return values: reliability :return: power: Comma-separated list of absolute power values, one value per UL subframe. """ suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'FETCh:NRSub:MEASurement<Instance>:TPC:TRACe:TXPower:CURRent?', suppressed) return response
# noinspection PyTypeChecker
[docs] def calculate(self) -> List[enums.ResultStatus2]: """ ``CALCulate:NRSub:MEASurement<Instance>:TPC:TRACe:TXPower:CURRent`` \n Snippet: ``value: List[enums.ResultStatus2] = driver.nrSubMeas.tpc.trace.txPower.current.calculate()`` \n No help available Suppressed linked return values: reliability """ suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_str_suppressed(f'CALCulate:NRSub:MEASurement<Instance>:TPC:TRACe:TXPower:CURRent?', suppressed) return Conversions.str_to_list_enum(response, enums.ResultStatus2)