Source code for rsrtx.Implementations.Diagnostic.Hums.Utilization.Custom

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


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

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

	@property
	def add(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_add'):
			from .Add import AddCls
			self._add = AddCls(self._core, self._cmd_group)
		return self._add

	@property
	def update(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_update'):
			from .Update import UpdateCls
			self._update = UpdateCls(self._core, self._cmd_group)
		return self._update

[docs] def delete(self, idn: int) -> None: """ ``DIAGnostic:HUMS:UTILization:CUSTom:DELete`` \n Snippet: ``driver.diagnostic.hums.utilization.custom.delete(idn = 1)`` \n No help available """ param = Conversions.decimal_value_to_str(idn) self._core.io.write(f'DIAGnostic:HUMS:UTILization:CUSTom:DELete {param}')
[docs] def delete_all(self) -> None: """ ``DIAGnostic:HUMS:UTILization:CUSTom:DELete:ALL`` \n Snippet: ``driver.diagnostic.hums.utilization.custom.delete_all()`` \n No help available """ self._core.io.write(f'DIAGnostic:HUMS:UTILization:CUSTom:DELete:ALL')
[docs] def delete_all_and_wait(self, opc_timeout_ms: int = -1) -> None: """ ``DIAGnostic:HUMS:UTILization:CUSTom:DELete:ALL`` \n Snippet: ``driver.diagnostic.hums.utilization.custom.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:UTILization:CUSTom:DELete:ALL', opc_timeout_ms)
def clone(self) -> 'CustomCls': """ 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 = CustomCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group