Source code for RsFsw.Implementations.Calculate.DeltaMarker.Function.Pnoise.Result

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import repcap


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

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

[docs] def get(self, window=repcap.Window.Default, deltaMarker=repcap.DeltaMarker.Default) -> float: """ ``CALCulate<n>:DELTamarker<m>:FUNCtion:PNOise:RESult`` \n Snippet: ``value: float = driver.calculate.deltaMarker.function.pnoise.result.get(window = repcap.Window.Default, deltaMarker = repcap.DeltaMarker.Default)`` \n Queries the result of a phase noise measurement. If necessary, the command activates the measurement first. Is only available in the Spectrum application. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') :param deltaMarker: optional repeated capability selector. Default value: Nr1 (settable in the interface 'DeltaMarker') :return: phasenoise: numeric value The difference in level between the reference point and the noise power density at the position of the specified delta marker. """ window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) deltaMarker_cmd_val = self._cmd_group.get_repcap_cmd_value(deltaMarker, repcap.DeltaMarker) response = self._core.io.query_str(f'CALCulate{window_cmd_val}:DELTamarker{deltaMarker_cmd_val}:FUNCtion:PNOise:RESult?') return Conversions.str_to_float(response)