Source code for RsFsw.Implementations.Display.Window.Subwindow.Trace.Maxhold

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


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

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

	@property
	def state(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_state'):
			from .State import StateCls
			self._state = StateCls(self._core, self._cmd_group)
		return self._state

	@property
	def intensity(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_intensity'):
			from .Intensity import IntensityCls
			self._intensity = IntensityCls(self._core, self._cmd_group)
		return self._intensity

[docs] def reset(self, window=repcap.Window.Default, subWindow=repcap.SubWindow.Default, trace=repcap.Trace.Default) -> None: """ ``DISPlay[:WINDow<n>][:SUBWindow<w>]:TRACe<t>:MAXHold:RESet`` \n Snippet: ``driver.display.window.subwindow.trace.maxhold.reset(window = repcap.Window.Default, subWindow = repcap.SubWindow.Default, trace = repcap.Trace.Default)`` \n No help available :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') :param subWindow: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Subwindow') :param trace: optional repeated capability selector. Default value: Tr1 (settable in the interface 'Trace') """ window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) subWindow_cmd_val = self._cmd_group.get_repcap_cmd_value(subWindow, repcap.SubWindow) trace_cmd_val = self._cmd_group.get_repcap_cmd_value(trace, repcap.Trace) self._core.io.write(f'DISPlay:WINDow{window_cmd_val}:SUBWindow{subWindow_cmd_val}:TRACe{trace_cmd_val}:MAXHold:RESet')
[docs] def reset_with_opc(self, window=repcap.Window.Default, subWindow=repcap.SubWindow.Default, trace=repcap.Trace.Default, opc_timeout_ms: int = -1) -> None: window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) subWindow_cmd_val = self._cmd_group.get_repcap_cmd_value(subWindow, repcap.SubWindow) trace_cmd_val = self._cmd_group.get_repcap_cmd_value(trace, repcap.Trace) """ ``DISPlay[:WINDow<n>][:SUBWindow<w>]:TRACe<t>:MAXHold:RESet`` \n Snippet: ``driver.display.window.subwindow.trace.maxhold.reset_with_opc(window = repcap.Window.Default, subWindow = repcap.SubWindow.Default, trace = repcap.Trace.Default)`` \n No help available Same as reset, but waits for the operation to complete before continuing further. Use the RsFsw.utilities.opc_timeout_set() to set the timeout value. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') :param subWindow: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Subwindow') :param trace: optional repeated capability selector. Default value: Tr1 (settable in the interface 'Trace') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ self._core.io.write_with_opc(f'DISPlay:WINDow{window_cmd_val}:SUBWindow{subWindow_cmd_val}:TRACe{trace_cmd_val}:MAXHold:RESet', opc_timeout_ms)
def clone(self) -> 'MaxholdCls': """ 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 = MaxholdCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group