Source code for RsSmw.Implementations.Source.Efrontend.Loscillator.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_frequency(self) -> float: """ ``[SOURce<HW>]:EFRontend:LOSCillator:OUTPut:FREQuency`` \n Snippet: ``value: float = driver.source.efrontend.loscillator.output.get_frequency()`` \n Requires [:SOURce<hw>]:EFRontend:LOSCillator:OUTPut:STATe 1. Queries the current frequency on the 'LO Out' connector of the connected external frontend. :return: output_frequency: float """ response = self._core.io.query_str('SOURce<HwInstance>:EFRontend:LOSCillator:OUTPut:FREQuency?') return Conversions.str_to_float(response)
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:EFRontend:LOSCillator:OUTPut:STATe`` \n Snippet: ``value: bool = driver.source.efrontend.loscillator.output.get_state()`` \n Activates or deactivates the LO output of the connected external frontend. :return: out_state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:EFRontend:LOSCillator:OUTPut:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, out_state: bool) -> None: """ ``[SOURce<HW>]:EFRontend:LOSCillator:OUTPut:STATe`` \n Snippet: ``driver.source.efrontend.loscillator.output.set_state(out_state = False)`` \n Activates or deactivates the LO output of the connected external frontend. :param out_state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(out_state) self._core.io.write(f'SOURce<HwInstance>:EFRontend:LOSCillator:OUTPut:STATe {param}')