from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StateCls:
"""
| Commands in total: 16
| Subgroups: 11
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("state", core, parent)
@property
def cedge(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_cedge'):
from .Cedge import CedgeCls
self._cedge = CedgeCls(self._core, self._cmd_group)
return self._cedge
@property
def clevel(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_clevel'):
from .Clevel import ClevelCls
self._clevel = ClevelCls(self._core, self._cmd_group)
return self._clevel
@property
def csource(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_csource'):
from .Csource import CsourceCls
self._csource = CsourceCls(self._core, self._cmd_group)
return self._csource
@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 a(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_a'):
from .A import ACls
self._a = ACls(self._core, self._cmd_group)
return self._a
@property
def ab(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_ab'):
from .Ab import AbCls
self._ab = AbCls(self._core, self._cmd_group)
return self._ab
@property
def abcd(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_abcd'):
from .Abcd import AbcdCls
self._abcd = AbcdCls(self._core, self._cmd_group)
return self._abcd
@property
def b(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_b'):
from .B import BCls
self._b = BCls(self._core, self._cmd_group)
return self._b
@property
def c(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_c'):
from .C import CCls
self._c = CCls(self._core, self._cmd_group)
return self._c
@property
def cd(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_cd'):
from .Cd import CdCls
self._cd = CdCls(self._core, self._cmd_group)
return self._cd
@property
def d(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_d'):
from .D import DCls
self._d = DCls(self._core, self._cmd_group)
return self._d
[docs]
def set_acopy(self, search: str) -> None:
"""
``SEARch:TRIGger:STATe:ACOPy`` \n
Snippet: ``driver.search.trigger.state.set_acopy(search = 'abc')`` \n
Copies the trigger event configuration from Trigger A for the selected channel source to the search condition settings.
:param search: Search definition
"""
param = Conversions.value_to_quoted_str(search)
self._core.io.write_with_opc(f'SEARch:TRIGger:STATe:ACOPy {param}')
def clone(self) -> 'StateCls':
"""
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 = StateCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group