from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class InitiateCls:
"""Initiate commands group definition. 13 total commands, 7 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("initiate", core, parent)
@property
def sequencer(self):
"""sequencer commands group. 3 Sub-classes, 1 commands."""
if not hasattr(self, '_sequencer'):
from .Sequencer import SequencerCls
self._sequencer = SequencerCls(self._core, self._cmd_group)
return self._sequencer
@property
def block(self):
"""block commands group. 2 Sub-classes, 1 commands."""
if not hasattr(self, '_block'):
from .Block import BlockCls
self._block = BlockCls(self._core, self._cmd_group)
return self._block
@property
def spurious(self):
"""spurious commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_spurious'):
from .Spurious import SpuriousCls
self._spurious = SpuriousCls(self._core, self._cmd_group)
return self._spurious
@property
def espectrum(self):
"""espectrum commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_espectrum'):
from .Espectrum import EspectrumCls
self._espectrum = EspectrumCls(self._core, self._cmd_group)
return self._espectrum
@property
def refresh(self):
"""refresh commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_refresh'):
from .Refresh import RefreshCls
self._refresh = RefreshCls(self._core, self._cmd_group)
return self._refresh
@property
def conMeas(self):
"""conMeas commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_conMeas'):
from .ConMeas import ConMeasCls
self._conMeas = ConMeasCls(self._core, self._cmd_group)
return self._conMeas
@property
def continuous(self):
"""continuous commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_continuous'):
from .Continuous import ContinuousCls
self._continuous = ContinuousCls(self._core, self._cmd_group)
return self._continuous
def clone(self) -> 'InitiateCls':
"""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 = InitiateCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group