from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AsequencingCls:
"""
| Commands in total: 17
| Subgroups: 4
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("asequencing", core, parent)
@property
def qsfp(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_qsfp'):
from .Qsfp import QsfpCls
self._qsfp = QsfpCls(self._core, self._cmd_group)
return self._qsfp
@property
def wave(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_wave'):
from .Wave import WaveCls
self._wave = WaveCls(self._core, self._cmd_group)
return self._wave
@property
def wlist(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
if not hasattr(self, '_wlist'):
from .Wlist import WlistCls
self._wlist = WlistCls(self._core, self._cmd_group)
return self._wlist
@property
def sequencer(self):
"""
| Commands in total: 12
| Subgroups: 3
| Direct child commands: 0
"""
if not hasattr(self, '_sequencer'):
from .Sequencer import SequencerCls
self._sequencer = SequencerCls(self._core, self._cmd_group)
return self._sequencer
# noinspection PyTypeChecker
[docs]
def get_omode(self) -> enums.ExtSeqAdwMode:
"""
``[SOURce<HW>]:BB:ESEQuencer:ASEQuencing:OMODe`` \n
Snippet: ``value: enums.ExtSeqAdwMode = driver.source.bb.esequencer.asequencing.get_omode()`` \n
Selects the operation mode.
:return: operation_mode: INSTant | DETerministic INSTant The generator plays back prestored ARB segments according to the ADW with low latency. DETerministic The generator plays back prestored ARB segments according to the ADW after a 'ready' signal is acknowledged and the next ARB segment is triggered.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ESEQuencer:ASEQuencing:OMODe?')
return Conversions.str_to_scalar_enum(response, enums.ExtSeqAdwMode)
[docs]
def set_omode(self, operation_mode: enums.ExtSeqAdwMode) -> None:
"""
``[SOURce<HW>]:BB:ESEQuencer:ASEQuencing:OMODe`` \n
Snippet: ``driver.source.bb.esequencer.asequencing.set_omode(operation_mode = enums.ExtSeqAdwMode.DETerministic)`` \n
Selects the operation mode.
:param operation_mode: INSTant | DETerministic INSTant The generator plays back prestored ARB segments according to the ADW with low latency. DETerministic The generator plays back prestored ARB segments according to the ADW after a 'ready' signal is acknowledged and the next ARB segment is triggered.
"""
param = Conversions.enum_scalar_to_str(operation_mode, enums.ExtSeqAdwMode)
self._core.io.write(f'SOURce<HwInstance>:BB:ESEQuencer:ASEQuencing:OMODe {param}')
def clone(self) -> 'AsequencingCls':
"""
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 = AsequencingCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group