Source code for RsSmw.Implementations.System.Error.History

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class HistoryCls:
	"""
	| Commands in total: 2
	| Subgroups: 0
	| Direct child commands: 2
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("history", core, parent)

[docs] def clear(self) -> None: """ ``SYSTem:ERRor:HISTory:CLEar`` \n Snippet: ``driver.system.error.history.clear()`` \n Clears the error history. """ self._core.io.write(f'SYSTem:ERRor:HISTory:CLEar')
[docs] def clear_with_opc(self, opc_timeout_ms: int = -1) -> None: """ ``SYSTem:ERRor:HISTory:CLEar`` \n Snippet: ``driver.system.error.history.clear_with_opc()`` \n Clears the error history. Same as clear, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value. :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ self._core.io.write_with_opc(f'SYSTem:ERRor:HISTory:CLEar', opc_timeout_ms)
[docs] def get_value(self) -> str: """ ``SYSTem:ERRor:HISTory`` \n Snippet: ``value: str = driver.system.error.history.get_value()`` \n No help available """ response = self._core.io.query_str('SYSTem:ERRor:HISTory?') return trim_str_response(response)