from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.Types import DataType
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ErEnableCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("erEnable", core, parent)
[docs]
def set(self, search: str, error_name: str, enabler: bool) -> None:
"""
``SEARch:TRIGger:MPHY:SSIC:ERENable`` \n
Snippet: ``driver.search.trigger.mphy.ssic.erEnable.set(search = 'abc', error_name = 'abc', enabler = False)`` \n
Enables or disables the searching for an error condition.
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('error_name', error_name, DataType.String), ArgSingle('enabler', enabler, DataType.Boolean))
self._core.io.write(f'SEARch:TRIGger:MPHY:SSIC:ERENable {param}'.rstrip())