from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StateCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("state", core, parent)
[docs]
def set(self, state: bool) -> None:
"""
``CONFigure:DPD:AMXM[:STATe]`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.dpd.amxm.state.set(state = False)`` \n
This command turns 'AM/AM' and 'AM/PM' predistortion on and off (at the same time) .
Alternatively, you can do that with: \n
- method ``RsFsw.applications.k18AmplifierEt.configure.dpd.amam.state.set()`` and
- method ``RsFsw.applications.k18AmplifierEt.configure.dpd.amPm.state.set()``
However, using method ``RsFsw.applications.k18AmplifierEt.configure.dpd.amxm.state.set()`` is the smoother way.
Prerequisites for this command \n
- Turn on polynomial DPD (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.state.set()`` ) .
:param state: ON | OFF | 1 | 0
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'CONFigure:DPD:AMXM:STATe {param}')