Source code for rsrtx.Implementations.Trigger.Holdoff.AutoTime

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


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

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

[docs] def get(self, trigger=repcap.Trigger.Default) -> float: """ ``TRIGger<*>:HOLDoff:AUTotime`` \n Snippet: ``value: float = driver.trigger.holdoff.autoTime.get(trigger = repcap.Trigger.Default)`` \n Returns the resulting holdoff time if the holdoff mode is set to AUTO: Auto time = Auto time scaling * Horizontal scale. The auto time scaling factor is defined with method ``RsRtx.trigger.holdoff.scaling.set()`` . See also: method ``RsRtx.trigger.holdoff.mode.set()`` :param trigger: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trigger') :return: auto_time: Holdoff time """ trigger_cmd_val = self._cmd_group.get_repcap_cmd_value(trigger, repcap.Trigger) response = self._core.io.query_str_with_opc(f'TRIGger{trigger_cmd_val}:HOLDoff:AUTotime?') return Conversions.str_to_float(response)