Source code for rsrtx.Implementations.Display.Trigger

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


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

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

[docs] def get_lines(self) -> bool: """ ``DISPlay:TRIGger:LINes`` \n Snippet: ``value: bool = driver.display.trigger.get_lines()`` \n Hides or shows the trigger levels in the diagrams. """ response = self._core.io.query_str_with_opc('DISPlay:TRIGger:LINes?') return Conversions.str_to_bool(response)
[docs] def set_lines(self, shw_levs_permanent: bool) -> None: """ ``DISPlay:TRIGger:LINes`` \n Snippet: ``driver.display.trigger.set_lines(shw_levs_permanent = False)`` \n Hides or shows the trigger levels in the diagrams. :param shw_levs_permanent: OFF | ON """ param = Conversions.bool_to_str(shw_levs_permanent) self._core.io.write_with_opc(f'DISPlay:TRIGger:LINes {param}')