Source code for RsFsw.Implementations.Applications.K60_Transient.Calculate.ChrDetection.Pnoise.Frequency.Start

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


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

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

[docs] def set(self, frequency: float, window=repcap.Window.Default) -> None: """ ``CALCulate<n>:CHRDetection:PNOise:FREQuency:STARt`` \n Snippet: ``driver.applications.k60Transient.calculate.chrDetection.pnoise.frequency.start.set(frequency = 1.0, window = repcap.Window.Default)`` \n Sets the start frequency for the phase noise chirp measurement. :param frequency: Unit: Hz :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') """ param = Conversions.decimal_value_to_str(frequency) window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) self._core.io.write(f'CALCulate{window_cmd_val}:CHRDetection:PNOise:FREQuency:STARt {param}')
[docs] def get(self, window=repcap.Window.Default) -> float: """ ``CALCulate<n>:CHRDetection:PNOise:FREQuency:STARt`` \n Snippet: ``value: float = driver.applications.k60Transient.calculate.chrDetection.pnoise.frequency.start.get(window = repcap.Window.Default)`` \n Sets the start frequency for the phase noise chirp measurement. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') :return: frequency: Unit: Hz """ window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) response = self._core.io.query_str(f'CALCulate{window_cmd_val}:CHRDetection:PNOise:FREQuency:STARt?') return Conversions.str_to_float(response)