Source code for RsCMPX_NrFr1Meas.Implementations.NrSubMeas.Tpc.Trace.Psteps.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:PSTeps:CURRent`` \n Snippet: ``value: List[float] = driver.nrSubMeas.tpc.trace.psteps.current.read()`` \n Returns the contents of the power step vs subframe diagram. See also 'Lower diagram'. The values described below are returned by FETCh and READ commands. A CALCulate command returns limit check results instead, one value for each result listed below. Suppressed linked return values: reliability :return: power_step: Comma-separated list of relative power values, one value per power step. The number of power steps equals the number of UL subframes minus 1. """ 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:PSTeps:CURRent?', suppressed) return response
[docs] def fetch(self) -> List[float]: """ ``FETCh:NRSub:MEASurement<Instance>:TPC:TRACe:PSTeps:CURRent`` \n Snippet: ``value: List[float] = driver.nrSubMeas.tpc.trace.psteps.current.fetch()`` \n Returns the contents of the power step vs subframe diagram. See also 'Lower diagram'. The values described below are returned by FETCh and READ commands. A CALCulate command returns limit check results instead, one value for each result listed below. Suppressed linked return values: reliability :return: power_step: Comma-separated list of relative power values, one value per power step. The number of power steps equals the number of UL subframes minus 1. """ 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:PSTeps:CURRent?', suppressed) return response
# noinspection PyTypeChecker
[docs] def calculate(self) -> List[enums.ResultStatus2]: """ ``CALCulate:NRSub:MEASurement<Instance>:TPC:TRACe:PSTeps:CURRent`` \n Snippet: ``value: List[enums.ResultStatus2] = driver.nrSubMeas.tpc.trace.psteps.current.calculate()`` \n Returns the contents of the power step vs subframe diagram. See also 'Lower diagram'. The values described below are returned by FETCh and READ commands. A CALCulate command returns limit check results instead, one value for each result listed below. Suppressed linked return values: reliability :return: power_step: Comma-separated list of relative power values, one value per power step. The number of power steps equals the number of UL subframes minus 1. """ suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_str_suppressed(f'CALCulate:NRSub:MEASurement<Instance>:TPC:TRACe:PSTeps:CURRent?', suppressed) return Conversions.str_to_list_enum(response, enums.ResultStatus2)