from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class EqualizerCls:
"""
| Commands in total: 7
| Subgroups: 6
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("equalizer", core, parent)
@property
def file(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_file'):
from .File import FileCls
self._file = FileCls(self._core, self._cmd_group)
return self._file
@property
def length(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_length'):
from .Length import LengthCls
self._length = LengthCls(self._core, self._cmd_group)
return self._length
@property
def load(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_load'):
from .Load import LoadCls
self._load = LoadCls(self._core, self._cmd_group)
return self._load
@property
def mode(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_mode'):
from .Mode import ModeCls
self._mode = ModeCls(self._core, self._cmd_group)
return self._mode
@property
def save(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_save'):
from .Save import SaveCls
self._save = SaveCls(self._core, self._cmd_group)
return self._save
@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
[docs]
def reset(self) -> None:
"""
``[SENSe]:DDEMod:EQUalizer:RESet`` \n
Snippet: ``driver.applications.k70Vsa.sense.ddemod.equalizer.reset()`` \n
Deletes the data of the currently selected equalizer. After deletion, training can start again using the command
DDEM:EQU:MODE TRA (see method ``RsFsw.applications.k70Vsa.sense.ddemod.equalizer.mode.set()`` ) .
"""
self._core.io.write(f'SENSe:DDEMod:EQUalizer:RESet')
[docs]
def reset_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``[SENSe]:DDEMod:EQUalizer:RESet`` \n
Snippet: ``driver.applications.k70Vsa.sense.ddemod.equalizer.reset_with_opc()`` \n
Deletes the data of the currently selected equalizer. After deletion, training can start again using the command
DDEM:EQU:MODE TRA (see method ``RsFsw.applications.k70Vsa.sense.ddemod.equalizer.mode.set()`` ) .
Same as reset, 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'SENSe:DDEMod:EQUalizer:RESet', opc_timeout_ms)
def clone(self) -> 'EqualizerCls':
"""
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 = EqualizerCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group