from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class AllCls:
"""All commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("all", core, parent)
# noinspection PyTypeChecker
[docs]
def get_result(self) -> enums.Test:
"""SCPI: TEST<HW>:ALL:RESult \n
Snippet: value: enums.Test = driver.test.all.get_result() \n
Queries the result of the performed selftest. Start the selftest with method RsAreg800.Test.All.start. \n
:return: result: No help available
"""
response = self._core.io.query_str('TEST<HwInstance>:ALL:RESult?')
return Conversions.str_to_scalar_enum(response, enums.Test)
[docs]
def start(self) -> None:
"""SCPI: TEST<HW>:ALL:STARt \n
Snippet: driver.test.all.start() \n
No command help available \n
"""
self._core.io.write(f'TEST<HwInstance>:ALL:STARt')
[docs]
def start_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""SCPI: TEST<HW>:ALL:STARt \n
Snippet: driver.test.all.start_with_opc() \n
No command help available \n
Same as start, but waits for the operation to complete before continuing further. Use the RsAreg800.utilities.opc_timeout_set() to set the timeout value. \n
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call."""
self._core.io.write_with_opc(f'TEST<HwInstance>:ALL:STARt', opc_timeout_ms)