from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class WidthCls:
"""
| Commands in total: 6
| Subgroups: 5
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("width", core, parent)
@property
def delta(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_delta'):
from .Delta import DeltaCls
self._delta = DeltaCls(self._core, self._cmd_group)
return self._delta
@property
def polarity(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_polarity'):
from .Polarity import PolarityCls
self._polarity = PolarityCls(self._core, self._cmd_group)
return self._polarity
@property
def range(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_range'):
from .Range import RangeCls
self._range = RangeCls(self._core, self._cmd_group)
return self._range
@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 width(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_width'):
from .Width import WidthCls
self._width = WidthCls(self._core, self._cmd_group)
return self._width
[docs]
def set_acopy(self, search: str) -> None:
"""
``SEARch:TRIGger:WIDTh:ACOPy`` \n
Snippet: ``driver.search.trigger.width.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:WIDTh:ACOPy {param}')
def clone(self) -> 'WidthCls':
"""
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 = WidthCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group