Source code for rsrtx.Implementations.Diagnostic.Hums.Device.History

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup


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

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

	@property
	def event(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_event'):
			from .Event import EventCls
			self._event = EventCls(self._core, self._cmd_group)
		return self._event

[docs] def delete_all(self) -> None: """ ``DIAGnostic:HUMS:DEVice:HISTory:DELete:ALL`` \n Snippet: ``driver.diagnostic.hums.device.history.delete_all()`` \n No help available """ self._core.io.write(f'DIAGnostic:HUMS:DEVice:HISTory:DELete:ALL')
[docs] def delete_all_and_wait(self, opc_timeout_ms: int = -1) -> None: """ ``DIAGnostic:HUMS:DEVice:HISTory:DELete:ALL`` \n Snippet: ``driver.diagnostic.hums.device.history.delete_all_and_wait()`` \n No help available Same as delete_all, but waits for the operation to complete before continuing further. Use the RsRtx.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'DIAGnostic:HUMS:DEVice:HISTory:DELete:ALL', opc_timeout_ms)
[docs] def get_value(self) -> bytes: """ ``DIAGnostic:HUMS:DEVice:HISTory`` \n Snippet: ``value: bytes = driver.diagnostic.hums.device.history.get_value()`` \n No help available """ response = self._core.io.query_bin_block('DIAGnostic:HUMS:DEVice:HISTory?') return response
def clone(self) -> 'HistoryCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = HistoryCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group