Source code for rsrtx.Implementations.Sense.Roscillator.External

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


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

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

[docs] def get_frequency(self) -> float: """ ``SENSe[:ROSCillator]:EXTernal:FREQuency`` \n Snippet: ``value: float = driver.sense.roscillator.external.get_frequency()`` \n Sets the frequency of an external reference input signal that is connected to the external reference input on the rear panel. """ response = self._core.io.query_str_with_opc('SENSe:ROSCillator:EXTernal:FREQuency?') return Conversions.str_to_float(response)
[docs] def set_frequency(self, external_ref: float) -> None: """ ``SENSe[:ROSCillator]:EXTernal:FREQuency`` \n Snippet: ``driver.sense.roscillator.external.set_frequency(external_ref = 1.0)`` \n Sets the frequency of an external reference input signal that is connected to the external reference input on the rear panel. """ param = Conversions.decimal_value_to_str(external_ref) self._core.io.write_with_opc(f'SENSe:ROSCillator:EXTernal:FREQuency {param}')