from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PatternCls:
"""
| Commands in total: 19
| Subgroups: 11
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("pattern", core, parent)
@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 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 timeout(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_timeout'):
from .Timeout import TimeoutCls
self._timeout = TimeoutCls(self._core, self._cmd_group)
return self._timeout
@property
def width(self):
"""
| Commands in total: 3
| Subgroups: 3
| Direct child commands: 0
"""
if not hasattr(self, '_width'):
from .Width import WidthCls
self._width = WidthCls(self._core, self._cmd_group)
return self._width
@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:PATTern:ACOPy`` \n
Snippet: ``driver.search.trigger.pattern.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:PATTern:ACOPy {param}')
def clone(self) -> 'PatternCls':
"""
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 = PatternCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group