Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.MassMemory.Store.Dpd

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import repcap


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

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

[docs] def set(self, filename: str, store=repcap.Store.Default) -> None: """ ``MMEMory:STORe<n>:DPD`` \n Snippet: ``driver.applications.k18AmplifierEt.massMemory.store.dpd.set(filename = 'abc', store = repcap.Store.Default)`` \n This command generates and stores a waveform containing the DPD in a file you have specified. Prerequisites for this command \n - DPD method 'Generate Predistorted Waveform File' has to be selected (method ``RsFsw.applications.k18AmplifierEt.configure.dpd.method.set()`` = WFILe) - The DPD calculation has been initiated with method ``RsFsw.applications.k18AmplifierEt.configure.dpd.file.generate.set()`` . :param filename: String containing the file name. :param store: optional repeated capability selector. Default value: Pos1 (settable in the interface 'Store') """ param = Conversions.value_to_quoted_str(filename) store_cmd_val = self._cmd_group.get_repcap_cmd_value(store, repcap.Store) self._core.io.write(f'MMEMory:STORe{store_cmd_val}:DPD {param}')