from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RtciCls:
"""
| Commands in total: 26
| Subgroups: 3
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("rtci", core, parent)
@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: 21
| Subgroups: 4
| 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
# noinspection PyTypeChecker
[docs]
def get_pdw_rate(self) -> enums.ExtSeqPdwRateMode:
"""
``[SOURce<HW>]:BB:ESEQuencer:RTCI:PDWRate`` \n
Snippet: ``value: enums.ExtSeqPdwRateMode = driver.source.bb.esequencer.rtci.get_pdw_rate()`` \n
Sets the mode for the PDW streaming rate.
:return: rate_mode: STANdard | HSPeed STANdard For fast HIL response time, less than 100 us. Supports PDW streaming rates up to 1.5 MPDW/s. HSPeed For high PDW streaming rates up to 2 MPDW/s.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ESEQuencer:RTCI:PDWRate?')
return Conversions.str_to_scalar_enum(response, enums.ExtSeqPdwRateMode)
[docs]
def set_pdw_rate(self, rate_mode: enums.ExtSeqPdwRateMode) -> None:
"""
``[SOURce<HW>]:BB:ESEQuencer:RTCI:PDWRate`` \n
Snippet: ``driver.source.bb.esequencer.rtci.set_pdw_rate(rate_mode = enums.ExtSeqPdwRateMode.HSPeed)`` \n
Sets the mode for the PDW streaming rate.
:param rate_mode: STANdard | HSPeed STANdard For fast HIL response time, less than 100 us. Supports PDW streaming rates up to 1.5 MPDW/s. HSPeed For high PDW streaming rates up to 2 MPDW/s.
"""
param = Conversions.enum_scalar_to_str(rate_mode, enums.ExtSeqPdwRateMode)
self._core.io.write(f'SOURce<HwInstance>:BB:ESEQuencer:RTCI:PDWRate {param}')
def clone(self) -> 'RtciCls':
"""
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 = RtciCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group