Source code for RsFsw.Implementations.Configure.Generator.Npratio.Notch.Clock

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


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

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

[docs] def get(self, notch=repcap.Notch.Default) -> float: """ ``CONFigure:GENerator:NPRatio:NOTCh<notch>:CLOCk`` \n Snippet: ``value: float = driver.configure.generator.npratio.notch.clock.get(notch = repcap.Notch.Default)`` \n Queries the generator clock frequency. :param notch: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Notch') :return: clock_frequency: 1..n irrelevant """ notch_cmd_val = self._cmd_group.get_repcap_cmd_value(notch, repcap.Notch) response = self._core.io.query_str(f'CONFigure:GENerator:NPRatio:NOTCh{notch_cmd_val}:CLOCk?') return Conversions.str_to_float(response)