Source code for RsCmwLteMeas.Implementations.MultiEval.Amarker.Pdynamics

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 ....Internal.ArgSingleList import ArgSingleList
from ....Internal.ArgSingle import ArgSingle
from .... import enums
from .... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class PdynamicsCls: """Pdynamics commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("pdynamics", core, parent)
[docs] def fetch(self, xvalue: float or bool, trace_select: enums.TraceSelect, absMarker=repcap.AbsMarker.Default) -> float: """SCPI: FETCh:LTE:MEASurement<Instance>:MEValuation:AMARker<No>:PDYNamics \n Snippet: value: float = driver.multiEval.amarker.pdynamics.fetch(xvalue = 1.0, trace_select = enums.TraceSelect.AVERage, absMarker = repcap.AbsMarker.Default) \n Uses the markers 1 and 2 with absolute values on the power dynamics trace. \n Use RsCmwLteMeas.reliability.last_value to read the updated reliability indicator. \n :param xvalue: (float or boolean) integer Absolute X value of the marker position Range: -1100 µs to 2500 µs, Unit: µs :param trace_select: CURRent | AVERage | MAXimum :param absMarker: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Amarker') :return: yvalue: float Absolute Y value of the marker position Unit: dBm""" param = ArgSingleList().compose_cmd_string(ArgSingle('xvalue', xvalue, DataType.FloatExt), ArgSingle('trace_select', trace_select, DataType.Enum, enums.TraceSelect)) absMarker_cmd_val = self._cmd_group.get_repcap_cmd_value(absMarker, repcap.AbsMarker) suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_str_suppressed(f'FETCh:LTE:MEASurement<Instance>:MEValuation:AMARker{absMarker_cmd_val}:PDYNamics? {param}'.rstrip(), suppressed) return Conversions.str_to_float(response)