from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SetCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("set", core, parent)
[docs]
def set(self, ecount: int, errorCount=repcap.ErrorCount.Default) -> None:
"""
``DIAGnostic:INFO:ECOunt<CH>:SET`` \n
Snippet: ``driver.diagnostic.info.ecount.set.set(ecount = 1, errorCount = repcap.ErrorCount.Default)`` \n
No help available
:param errorCount: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Ecount')
"""
param = Conversions.decimal_value_to_str(ecount)
errorCount_cmd_val = self._cmd_group.get_repcap_cmd_value(errorCount, repcap.ErrorCount)
self._core.io.write(f'DIAGnostic:INFO:ECOunt{errorCount_cmd_val}:SET {param}')