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 FrEnableCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("frEnable", core, parent)
[docs]
def set(self, search: str, frame: str, enabler: bool) -> None:
"""
``SEARch:TRIGger:CMSB:FRENable`` \n
Snippet: ``driver.search.trigger.cmsb.frEnable.set(search = 'abc', frame = 'abc', enabler = False)`` \n
Enables or disables the specific frame to be searched for.
:param enabler: OFF | ON
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('frame', frame, DataType.String), ArgSingle('enabler', enabler, DataType.Boolean))
self._core.io.write(f'SEARch:TRIGger:CMSB:FRENable {param}'.rstrip())