Source code for rsrtx.Implementations.Trigger.Tbto.Error.Oor

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


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

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

[docs] def set(self, error_oor: bool, trigger=repcap.Trigger.Default) -> None: """ ``TRIGger<*>:TBTO:ERRor:OOR`` \n Snippet: ``driver.trigger.tbto.error.oor.set(error_oor = False, trigger = repcap.Trigger.Default)`` \n Enables triggering if values are out of range (OOR) . For example, a preamble error, or invalid symbols in control blocks. :param error_oor: OFF | ON :param trigger: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trigger') """ param = Conversions.bool_to_str(error_oor) trigger_cmd_val = self._cmd_group.get_repcap_cmd_value(trigger, repcap.Trigger) self._core.io.write(f'TRIGger{trigger_cmd_val}:TBTO:ERRor:OOR {param}')
[docs] def get(self, trigger=repcap.Trigger.Default) -> bool: """ ``TRIGger<*>:TBTO:ERRor:OOR`` \n Snippet: ``value: bool = driver.trigger.tbto.error.oor.get(trigger = repcap.Trigger.Default)`` \n Enables triggering if values are out of range (OOR) . For example, a preamble error, or invalid symbols in control blocks. :param trigger: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trigger') :return: error_oor: OFF | ON """ trigger_cmd_val = self._cmd_group.get_repcap_cmd_value(trigger, repcap.Trigger) response = self._core.io.query_str(f'TRIGger{trigger_cmd_val}:TBTO:ERRor:OOR?') return Conversions.str_to_bool(response)