from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DdpdCls:
"""
| Commands in total: 15
| Subgroups: 11
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ddpd", core, parent)
@property
def window(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_window'):
from .Window import WindowCls
self._window = WindowCls(self._core, self._cmd_group)
return self._window
@property
def state(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_state'):
from .State import StateCls
self._state = StateCls(self._core, self._cmd_group)
return self._state
@property
def apply(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_apply'):
from .Apply import ApplyCls
self._apply = ApplyCls(self._core, self._cmd_group)
return self._apply
@property
def count(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
if not hasattr(self, '_count'):
from .Count import CountCls
self._count = CountCls(self._core, self._cmd_group)
return self._count
@property
def continuePy(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_continuePy'):
from .ContinuePy import ContinuePyCls
self._continuePy = ContinuePyCls(self._core, self._cmd_group)
return self._continuePy
@property
def rms(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_rms'):
from .Rms import RmsCls
self._rms = RmsCls(self._core, self._cmd_group)
return self._rms
@property
def finish(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_finish'):
from .Finish import FinishCls
self._finish = FinishCls(self._core, self._cmd_group)
return self._finish
@property
def fname(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_fname'):
from .Fname import FnameCls
self._fname = FnameCls(self._core, self._cmd_group)
return self._fname
@property
def fsave(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_fsave'):
from .Fsave import FsaveCls
self._fsave = FsaveCls(self._core, self._cmd_group)
return self._fsave
@property
def gexpansion(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_gexpansion'):
from .Gexpansion import GexpansionCls
self._gexpansion = GexpansionCls(self._core, self._cmd_group)
return self._gexpansion
@property
def tradeoff(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_tradeoff'):
from .Tradeoff import TradeoffCls
self._tradeoff = TradeoffCls(self._core, self._cmd_group)
return self._tradeoff
[docs]
def abort(self) -> None:
"""
``CONFigure:DDPD:ABORt`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.ddpd.abort()`` \n
This command stops a DPD sequence and discards the predistorted I/Q data that have been calculated.
Prerequisites for this command \n
- Turn on direct DPD (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.state.set()`` ) .
- Initiate a DPD sequence (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.start()`` ) .
"""
self._core.io.write(f'CONFigure:DDPD:ABORt')
[docs]
def abort_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``CONFigure:DDPD:ABORt`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.ddpd.abort_with_opc()`` \n
This command stops a DPD sequence and discards the predistorted I/Q data that have been calculated.
Prerequisites for this command \n
- Turn on direct DPD (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.state.set()`` ) .
- Initiate a DPD sequence (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.start()`` ) .
Same as abort, but waits for the operation to complete before continuing further. Use the RsFsw.utilities.opc_timeout_set() to set the timeout value.
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'CONFigure:DDPD:ABORt', opc_timeout_ms)
[docs]
def start(self) -> None:
"""
``CONFigure:DDPD:STARt`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.ddpd.start()`` \n
This command initiates a direct DPD sequence with the number of iterations you have defined. You can define the number of
iterations with method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.count.set()`` .
Prerequisites for this command \n
- Turn on direct DPD (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.state.set()`` ) .
"""
self._core.io.write(f'CONFigure:DDPD:STARt')
[docs]
def start_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``CONFigure:DDPD:STARt`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.ddpd.start_with_opc()`` \n
This command initiates a direct DPD sequence with the number of iterations you have defined. You can define the number of
iterations with method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.count.set()`` .
Prerequisites for this command \n
- Turn on direct DPD (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.state.set()`` ) .
Same as start, but waits for the operation to complete before continuing further. Use the RsFsw.utilities.opc_timeout_set() to set the timeout value.
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'CONFigure:DDPD:STARt', opc_timeout_ms)
def clone(self) -> 'DdpdCls':
"""
Clones the group by creating new object from it and its whole existing subgroups.
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group.
"""
new_group = DdpdCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group