Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.Dpd.Sequence

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


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

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

[docs] def set(self, state: enums.DpdOrder) -> None: """ ``CONFigure:DPD:SEQuence`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.dpd.sequence.set(state = enums.DpdOrder.AMFirst)`` \n This command selects the order in which the 'AM/AM' and 'AM/PM' distortion are applied. Available when both have been turned on. Prerequisites for this command \n - Turn on polynomial DPD (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.state.set()`` ) . - Turn on both 'AM/AM' and 'AM/PM' calculation (method ``RsFsw.applications.k18AmplifierEt.configure.dpd.amam.state.set()`` / method ``RsFsw.applications.k18AmplifierEt.configure.dpd.amPm.state.set()`` ) . :param state: AMFirst Calculates the 'AM/AM' distortion first, then the 'AM/PM' distortion. PMFirst Calculates the 'AM/PM' distortion first, then the 'AM/AM' distortion. """ param = Conversions.enum_scalar_to_str(state, enums.DpdOrder) self._core.io.write(f'CONFigure:DPD:SEQuence {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.DpdOrder: """ ``CONFigure:DPD:SEQuence`` \n Snippet: ``value: enums.DpdOrder = driver.applications.k18AmplifierEt.configure.dpd.sequence.get()`` \n This command selects the order in which the 'AM/AM' and 'AM/PM' distortion are applied. Available when both have been turned on. Prerequisites for this command \n - Turn on polynomial DPD (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.state.set()`` ) . - Turn on both 'AM/AM' and 'AM/PM' calculation (method ``RsFsw.applications.k18AmplifierEt.configure.dpd.amam.state.set()`` / method ``RsFsw.applications.k18AmplifierEt.configure.dpd.amPm.state.set()`` ) . :return: state: AMFirst Calculates the 'AM/AM' distortion first, then the 'AM/PM' distortion. PMFirst Calculates the 'AM/PM' distortion first, then the 'AM/AM' distortion. """ response = self._core.io.query_str(f'CONFigure:DPD:SEQuence?') return Conversions.str_to_scalar_enum(response, enums.DpdOrder)