Source code for rsrtx.Implementations.SwTrigger

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


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

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

[docs] def get_history(self) -> bool: """ ``SWTRigger:HISTory`` \n Snippet: ``value: bool = driver.swTrigger.get_history()`` \n Applies the zone trigger condition to the acquisitions in the history memory during history replay. See: 'Apply zone trigger to history'. :return: apply_zn_trig_history: OFF | ON """ response = self._core.io.query_str_with_opc('SWTRigger:HISTory?') return Conversions.str_to_bool(response)
[docs] def set_history(self, apply_zn_trig_history: bool) -> None: """ ``SWTRigger:HISTory`` \n Snippet: ``driver.swTrigger.set_history(apply_zn_trig_history = False)`` \n Applies the zone trigger condition to the acquisitions in the history memory during history replay. See: 'Apply zone trigger to history'. :param apply_zn_trig_history: OFF | ON """ param = Conversions.bool_to_str(apply_zn_trig_history) self._core.io.write_with_opc(f'SWTRigger:HISTory {param}')