Source code for RsFsw.Implementations.Sense.Roscillator.O100

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


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

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

[docs] def set(self, state: bool) -> None: """ ``[SENSe]:ROSCillator:O100`` \n Snippet: ``driver.sense.roscillator.o100.set(state = False)`` \n This command turns the output of a reference signal on the corresponding connector ('Ref Output') on and off. method ``RsFsw.sense.roscillator.o100.set()`` : Provides a 100 MHz reference signal on corresponding connector. method ``RsFsw.sense.roscillator.o640.set()`` : Provides a 640 MHz reference signal on corresponding connector. :param state: ON | OFF | 1 | 0 OFF | 0 Switches the reference off. ON | 1 Switches the reference on """ param = Conversions.bool_to_str(state) self._core.io.write_with_opc(f'SENSe:ROSCillator:O100 {param}')
[docs] def get(self) -> bool: """ ``[SENSe]:ROSCillator:O100`` \n Snippet: ``value: bool = driver.sense.roscillator.o100.get()`` \n This command turns the output of a reference signal on the corresponding connector ('Ref Output') on and off. method ``RsFsw.sense.roscillator.o100.set()`` : Provides a 100 MHz reference signal on corresponding connector. method ``RsFsw.sense.roscillator.o640.set()`` : Provides a 640 MHz reference signal on corresponding connector. :return: state: ON | OFF | 1 | 0 OFF | 0 Switches the reference off. ON | 1 Switches the reference on """ response = self._core.io.query_str_with_opc(f'SENSe:ROSCillator:O100?') return Conversions.str_to_bool(response)