Source code for RsFsw.Implementations.Applications.K60_Transient.Display.Window.Evaluate

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


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

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

[docs] def set(self, dsp: enums.EvaluateDsp, window=repcap.Window.Default) -> None: """ ``DISPlay[:WINDow<n>]:EVALuate`` \n Snippet: ``driver.applications.k60Transient.display.window.evaluate.set(dsp = enums.EvaluateDsp.CHIRp, window = repcap.Window.Default)`` \n Determines the evaluation basis for the specified result display. Which evaluation basis is available for which result display is indicated in Table 'Available evaluation methods and evaluation basis'. :param dsp: FULL | REGion | HOP | CHIRp FULL the full capture buffer REGion the selected analysis region (see 'Selecting the analysis region') HOP an individual selected hop (see method ``RsFsw.applications.k60Transient.calculate.hopDetection.selected.set()`` ) CHIRp an individual selected chirp (see method ``RsFsw.applications.k60Transient.calculate.chrDetection.selected.set()`` ) :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') """ param = Conversions.enum_scalar_to_str(dsp, enums.EvaluateDsp) window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) self._core.io.write(f'DISPlay:WINDow{window_cmd_val}:EVALuate {param}')
# noinspection PyTypeChecker
[docs] def get(self, window=repcap.Window.Default) -> enums.EvaluateDsp: """ ``DISPlay[:WINDow<n>]:EVALuate`` \n Snippet: ``value: enums.EvaluateDsp = driver.applications.k60Transient.display.window.evaluate.get(window = repcap.Window.Default)`` \n Determines the evaluation basis for the specified result display. Which evaluation basis is available for which result display is indicated in Table 'Available evaluation methods and evaluation basis'. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') :return: dsp: FULL | REGion | HOP | CHIRp FULL the full capture buffer REGion the selected analysis region (see 'Selecting the analysis region') HOP an individual selected hop (see method ``RsFsw.applications.k60Transient.calculate.hopDetection.selected.set()`` ) CHIRp an individual selected chirp (see method ``RsFsw.applications.k60Transient.calculate.chrDetection.selected.set()`` ) """ window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) response = self._core.io.query_str(f'DISPlay:WINDow{window_cmd_val}:EVALuate?') return Conversions.str_to_scalar_enum(response, enums.EvaluateDsp)