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:DDPD:FNAMe`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.ddpd.fname.set(filename = 'abc')`` \n
This command defines a file name for the I/Q file that contains the predistorted I/Q data that was generated by the
direct DPD.
Prerequisites for this command \n
- Turn on direct DPD (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.state.set()`` ) .
:param filename: String containing the file name (including file type .wv) .
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'CONFigure:DDPD:FNAMe {param}')
[docs]
def get(self) -> str:
"""
``CONFigure:DDPD:FNAMe`` \n
Snippet: ``value: str = driver.applications.k18AmplifierEt.configure.ddpd.fname.get()`` \n
This command defines a file name for the I/Q file that contains the predistorted I/Q data that was generated by the
direct DPD.
Prerequisites for this command \n
- Turn on direct DPD (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.state.set()`` ) .
:return: filename: String containing the file name (including file type .wv) .
"""
response = self._core.io.query_str(f'CONFigure:DDPD:FNAMe?')
return trim_str_response(response)