from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from .... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FilterPyCls:
"""
| Commands in total: 15
| Subgroups: 4
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("filterPy", core, parent)
@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 bpattern(self):
"""
| Commands in total: 7
| Subgroups: 6
| Direct child commands: 1
"""
if not hasattr(self, '_bpattern'):
from .Bpattern import BpatternCls
self._bpattern = BpatternCls(self._core, self._cmd_group)
return self._bpattern
@property
def ddr(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_ddr'):
from .Ddr import DdrCls
self._ddr = DdrCls(self._core, self._cmd_group)
return self._ddr
@property
def pamn(self):
"""
| Commands in total: 4
| Subgroups: 4
| Direct child commands: 0
"""
if not hasattr(self, '_pamn'):
from .Pamn import PamnCls
self._pamn = PamnCls(self._core, self._cmd_group)
return self._pamn
[docs]
def reset(self, eye=repcap.Eye.Default, opc_timeout_ms: int = -1) -> None:
"""
``EYE<*>:FILTer:RESet`` \n
Snippet: ``driver.eye.filterPy.reset(eye = repcap.Eye.Default)`` \n
Resets the current settings of a protocol filter.
:param eye: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Eye')
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
eye_cmd_val = self._cmd_group.get_repcap_cmd_value(eye, repcap.Eye)
self._core.io.write_with_opc(f'EYE{eye_cmd_val}:FILTer:RESet', opc_timeout_ms)
def clone(self) -> 'FilterPyCls':
"""
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 = FilterPyCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group