Source code for RsFsw.Implementations.Output.Ifreq.Source

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


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

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

[docs] def set(self, source: enums.Source) -> None: """ ``OUTPut:IF[:SOURce]`` \n Snippet: ``driver.output.ifreq.source.set(source = enums.Source.AM)`` \n Defines the type of signal available at one of the output connectors of the FSW. For restrictions and more information see 'IF and video signal output'. :param source: IF The measured IF value is available at the IF/VIDEO/DEMOD output connector. The frequency at which the IF value is provided is defined using the method ``RsFsw.applications.k9X11Ad.output.ifreq.ifFrequency.set()`` command. VIDeo The displayed video signal (i.e. the filtered and detected IF signal, 200mV) is available at the IF/VIDEO/DEMOD output connector. This setting is required to provide demodulated audio frequencies at the output. """ param = Conversions.enum_scalar_to_str(source, enums.Source) self._core.io.write(f'OUTPut:IF:SOURce {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.Source: """ ``OUTPut:IF[:SOURce]`` \n Snippet: ``value: enums.Source = driver.output.ifreq.source.get()`` \n Defines the type of signal available at one of the output connectors of the FSW. For restrictions and more information see 'IF and video signal output'. :return: source: IF The measured IF value is available at the IF/VIDEO/DEMOD output connector. The frequency at which the IF value is provided is defined using the method ``RsFsw.applications.k9X11Ad.output.ifreq.ifFrequency.set()`` command. VIDeo The displayed video signal (i.e. the filtered and detected IF signal, 200mV) is available at the IF/VIDEO/DEMOD output connector. This setting is required to provide demodulated audio frequencies at the output. """ response = self._core.io.query_str(f'OUTPut:IF:SOURce?') return Conversions.str_to_scalar_enum(response, enums.Source)