Source code for rsmxo.Implementations.Franalysis.InputPy

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


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

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

	# noinspection PyTypeChecker
[docs] def get_source(self) -> enums.AnalogChannels: """ ``FRANalysis:INPut[:SOURce]`` \n Snippet: ``value: enums.AnalogChannels = driver.franalysis.inputPy.get_source()`` \n Sets the channel for the input signal of the DUT. :return: input_channel: C1 | C2 | ... | C8 """ response = self._core.io.query_str('FRANalysis:INPut:SOURce?') return Conversions.str_to_scalar_enum(response, enums.AnalogChannels)
[docs] def set_source(self, input_channel: enums.AnalogChannels) -> None: """ ``FRANalysis:INPut[:SOURce]`` \n Snippet: ``driver.franalysis.inputPy.set_source(input_channel = enums.AnalogChannels.C1)`` \n Sets the channel for the input signal of the DUT. :param input_channel: C1 | C2 | ... | C8 """ param = Conversions.enum_scalar_to_str(input_channel, enums.AnalogChannels) self._core.io.write(f'FRANalysis:INPut:SOURce {param}')