from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SelftestCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("selftest", core, parent)
[docs]
def get_result(self) -> str:
"""
``[SOURce<HW>]:EFRontend:SELFtest:RESult`` \n
Snippet: ``value: str = driver.source.efrontend.selftest.get_result()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:EFRontend:SELFtest:RESult?')
return trim_str_response(response)
[docs]
def get_value(self) -> bool:
"""
``[SOURce<HW>]:EFRontend:SELFtest`` \n
Snippet: ``value: bool = driver.source.efrontend.selftest.get_value()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:EFRontend:SELFtest?')
return Conversions.str_to_bool(response)