Source code for rsmxo.Implementations.Trigger.Mevents.Sequence.Reset.Timeout.Time

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


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

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

[docs] def set(self, reset_timeout: float, sequence=repcap.Sequence.Default) -> None: """ ``TRIGger:MEVents:SEQuence<*>:RESet:TIMeout:TIME`` \n Snippet: ``driver.trigger.mevents.sequence.reset.timeout.time.set(reset_timeout = 1.0, sequence = repcap.Sequence.Default)`` \n The time the instrument waits for the number of B-events specified using method ``RsMxo.trigger.mevents.sequence.count.set()`` , before the sequence is restarted with the A-trigger. :param reset_timeout: 0 to 50 :param sequence: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Sequence') """ param = Conversions.decimal_value_to_str(reset_timeout) sequence_cmd_val = self._cmd_group.get_repcap_cmd_value(sequence, repcap.Sequence) self._core.io.write(f'TRIGger:MEVents:SEQuence{sequence_cmd_val}:RESet:TIMeout:TIME {param}')
[docs] def get(self, sequence=repcap.Sequence.Default) -> float: """ ``TRIGger:MEVents:SEQuence<*>:RESet:TIMeout:TIME`` \n Snippet: ``value: float = driver.trigger.mevents.sequence.reset.timeout.time.get(sequence = repcap.Sequence.Default)`` \n The time the instrument waits for the number of B-events specified using method ``RsMxo.trigger.mevents.sequence.count.set()`` , before the sequence is restarted with the A-trigger. :param sequence: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Sequence') :return: reset_timeout: 0 to 50 """ sequence_cmd_val = self._cmd_group.get_repcap_cmd_value(sequence, repcap.Sequence) response = self._core.io.query_str(f'TRIGger:MEVents:SEQuence{sequence_cmd_val}:RESet:TIMeout:TIME?') return Conversions.str_to_float(response)