from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
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, error_name: str, enabler: bool) -> None:
"""
``TRIGger:SBSW:RFFE:ERENable`` \n
Snippet: ``driver.trigger.sbsw.rffe.erEnable.set(error_name = 'abc', enabler = False)`` \n
Defines the error type for the software trigger.
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('error_name', error_name, DataType.String), ArgSingle('enabler', enabler, DataType.Boolean))
self._core.io.write(f'TRIGger:SBSW:RFFE:ERENable {param}'.rstrip())
[docs]
def get(self) -> bool:
"""
``TRIGger:SBSW:RFFE:ERENable`` \n
Snippet: ``value: bool = driver.trigger.sbsw.rffe.erEnable.get()`` \n
Defines the error type for the software trigger.
"""
response = self._core.io.query_str(f'TRIGger:SBSW:RFFE:ERENable?')
return Conversions.str_to_bool(response)