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 FiEnableCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("fiEnable", core, parent)
[docs]
def set(self, search: str, frame: str, field: str, enabler: bool) -> None:
"""
``SEARch:TRIGger:CANXl:FIENable`` \n
Snippet: ``driver.search.trigger.canXl.fiEnable.set(search = 'abc', frame = 'abc', field = 'abc', enabler = False)`` \n
Enables or disables the checking condition for the selected field of the selected frame.
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('frame', frame, DataType.String), ArgSingle('field', field, DataType.String), ArgSingle('enabler', enabler, DataType.Boolean))
self._core.io.write(f'SEARch:TRIGger:CANXl:FIENable {param}'.rstrip())