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

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response


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

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

[docs] def set(self, filename: str) -> None: """ ``CONFigure:DPD:FNAMe`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.dpd.fname.set(filename = 'abc')`` \n This command defines a name for the DPD correction table. Prerequisites for this command \n - Turn on polynomial DPD (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.state.set()`` ) . :param filename: String containing the DPD table file name. """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'CONFigure:DPD:FNAMe {param}')
[docs] def get(self) -> str: """ ``CONFigure:DPD:FNAMe`` \n Snippet: ``value: str = driver.applications.k18AmplifierEt.configure.dpd.fname.get()`` \n This command defines a name for the DPD correction table. Prerequisites for this command \n - Turn on polynomial DPD (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.state.set()`` ) . :return: filename: String containing the DPD table file name. """ response = self._core.io.query_str(f'CONFigure:DPD:FNAMe?') return trim_str_response(response)