from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SetHoldCls:
"""
| Commands in total: 7
| Subgroups: 6
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("setHold", 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 htime(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_htime'):
from .Htime import HtimeCls
self._htime = HtimeCls(self._core, self._cmd_group)
return self._htime
@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 stime(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_stime'):
from .Stime import StimeCls
self._stime = StimeCls(self._core, self._cmd_group)
return self._stime
[docs]
def set_acopy(self, search: str) -> None:
"""
``SEARch:TRIGger:SETHold:ACOPy`` \n
Snippet: ``driver.search.trigger.setHold.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:SETHold:ACOPy {param}')
def clone(self) -> 'SetHoldCls':
"""
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 = SetHoldCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group