Source code for RsCMPX_NrFr1Meas.Implementations.NrSubMeas.MultiEval.ReferenceMarker.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


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

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

[docs] def fetch(self, xvalue: float, trace_select: enums.TraceSelect) -> float: """ ``FETCh:NRSub:MEASurement<Instance>:MEValuation:REFMarker:PDYNamics`` \n Snippet: ``value: float = driver.nrSubMeas.multiEval.referenceMarker.pdynamics.fetch(xvalue = 1.0, trace_select = enums.TraceSelect.AVERage)`` \n Uses the reference marker on the power dynamics trace. Suppressed linked return values: reliability :param xvalue: Absolute x-value of the marker position :param trace_select: CURRent | AVERage | MAXimum :return: yvalue: Absolute y-value of the marker position """ param = ArgSingleList().compose_cmd_string(ArgSingle('xvalue', xvalue, DataType.Float), ArgSingle('trace_select', trace_select, DataType.Enum, enums.TraceSelect)) suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_str_suppressed(f'FETCh:NRSub:MEASurement<Instance>:MEValuation:REFMarker:PDYNamics? {param}'.rstrip(), suppressed) return Conversions.str_to_float(response)