Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.Mdpd.Waveform.Select

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


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

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

[docs] def set(self, type_py: enums.MdpdWaveformType) -> None: """ ``CONFigure:MDPD:WAVeform:SELect`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.mdpd.waveform.select.set(type_py = enums.MdpdWaveformType.DDPD)`` \n Selects the type of DPD waveform to be used. :param type_py: DDPD Uses a direct DPD waveform. MDPD Uses a memory polynomial DPD waveform. REF Uses the reference signal. """ param = Conversions.enum_scalar_to_str(type_py, enums.MdpdWaveformType) self._core.io.write(f'CONFigure:MDPD:WAVeform:SELect {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.MdpdWaveformType: """ ``CONFigure:MDPD:WAVeform:SELect`` \n Snippet: ``value: enums.MdpdWaveformType = driver.applications.k18AmplifierEt.configure.mdpd.waveform.select.get()`` \n Selects the type of DPD waveform to be used. :return: type_py: DDPD Uses a direct DPD waveform. MDPD Uses a memory polynomial DPD waveform. REF Uses the reference signal. """ response = self._core.io.query_str(f'CONFigure:MDPD:WAVeform:SELect?') return Conversions.str_to_scalar_enum(response, enums.MdpdWaveformType)