Source code for rsmxo.Implementations.Sense.Roscillator.Output

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


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

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

[docs] def get_enable(self) -> bool: """ ``SENSe[:ROSCillator]:OUTPut[:ENABle]`` \n Snippet: ``value: bool = driver.sense.roscillator.output.get_enable()`` \n Sends the used reference clock signal to the Ref Out 10 MHz connector. """ response = self._core.io.query_str('SENSe:ROSCillator:OUTPut:ENABle?') return Conversions.str_to_bool(response)
[docs] def set_enable(self, ref_output_enable: bool) -> None: """ ``SENSe[:ROSCillator]:OUTPut[:ENABle]`` \n Snippet: ``driver.sense.roscillator.output.set_enable(ref_output_enable = False)`` \n Sends the used reference clock signal to the Ref Out 10 MHz connector. :param ref_output_enable: OFF | ON """ param = Conversions.bool_to_str(ref_output_enable) self._core.io.write(f'SENSe:ROSCillator:OUTPut:ENABle {param}')
[docs] def get_frequency(self) -> float: """ ``SENSe[:ROSCillator]:OUTPut:FREQuency`` \n Snippet: ``value: float = driver.sense.roscillator.output.get_frequency()`` \n Returns the frequency of the output reference signal. :return: output_freq: 10 MHz """ response = self._core.io.query_str('SENSe:ROSCillator:OUTPut:FREQuency?') return Conversions.str_to_float(response)