Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.Dpd.Shaping.Mode

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


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

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

[docs] def set(self, method: enums.ShapingMethod) -> None: """ ``CONFigure:DPD:SHAPing:MODE`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.dpd.shaping.mode.set(method = enums.ShapingMethod.POLYnomial)`` \n This command selects the method use to shape the DPD function. :param method: POLYnomial DPD function based on the characteristics of the polynomial system model. TABLe DPD function based on the correction values kept in a table calculated by the R&S SMW. """ param = Conversions.enum_scalar_to_str(method, enums.ShapingMethod) self._core.io.write(f'CONFigure:DPD:SHAPing:MODE {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.ShapingMethod: """ ``CONFigure:DPD:SHAPing:MODE`` \n Snippet: ``value: enums.ShapingMethod = driver.applications.k18AmplifierEt.configure.dpd.shaping.mode.get()`` \n This command selects the method use to shape the DPD function. :return: method: POLYnomial DPD function based on the characteristics of the polynomial system model. TABLe DPD function based on the correction values kept in a table calculated by the R&S SMW. """ response = self._core.io.query_str(f'CONFigure:DPD:SHAPing:MODE?') return Conversions.str_to_scalar_enum(response, enums.ShapingMethod)