Source code for rsmxo.Implementations.Trigger.Event.SetHold.Stime

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


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

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

[docs] def set(self, setup_time: float, evnt=repcap.Evnt.Default) -> None: """ ``TRIGger:EVENt<*>:SETHold:STIMe`` \n Snippet: ``driver.trigger.event.setHold.stime.set(setup_time = 1.0, evnt = repcap.Evnt.Default)`` \n Sets the minimum time before the clock edge while the data signal must stay steady above or below the data level. :param setup_time: -9.9999E-08 to 1E-07 :param evnt: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Event') """ param = Conversions.decimal_value_to_str(setup_time) evnt_cmd_val = self._cmd_group.get_repcap_cmd_value(evnt, repcap.Evnt) self._core.io.write(f'TRIGger:EVENt{evnt_cmd_val}:SETHold:STIMe {param}')
[docs] def get(self, evnt=repcap.Evnt.Default) -> float: """ ``TRIGger:EVENt<*>:SETHold:STIMe`` \n Snippet: ``value: float = driver.trigger.event.setHold.stime.get(evnt = repcap.Evnt.Default)`` \n Sets the minimum time before the clock edge while the data signal must stay steady above or below the data level. :param evnt: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Event') :return: setup_time: -9.9999E-08 to 1E-07 """ evnt_cmd_val = self._cmd_group.get_repcap_cmd_value(evnt, repcap.Evnt) response = self._core.io.query_str(f'TRIGger:EVENt{evnt_cmd_val}:SETHold:STIMe?') return Conversions.str_to_float(response)