Source code for rsrtx.Implementations.Eye.Display.Persistence.Infinite

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


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

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

[docs] def set(self, inf_persist: bool, eye=repcap.Eye.Default) -> None: """ ``EYE<*>:DISPlay:PERSistence:INFinite`` \n Snippet: ``driver.eye.display.persistence.infinite.set(inf_persist = False, eye = repcap.Eye.Default)`` \n If persistence is enabled (method ``RsRtx.eye.display.persistence.state.set()`` ) , each new data point in the diagram area remains on the screen infinitely until this command is set to OFF. :param inf_persist: OFF | ON :param eye: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Eye') """ param = Conversions.bool_to_str(inf_persist) eye_cmd_val = self._cmd_group.get_repcap_cmd_value(eye, repcap.Eye) self._core.io.write_with_opc(f'EYE{eye_cmd_val}:DISPlay:PERSistence:INFinite {param}')
[docs] def get(self, eye=repcap.Eye.Default) -> bool: """ ``EYE<*>:DISPlay:PERSistence:INFinite`` \n Snippet: ``value: bool = driver.eye.display.persistence.infinite.get(eye = repcap.Eye.Default)`` \n If persistence is enabled (method ``RsRtx.eye.display.persistence.state.set()`` ) , each new data point in the diagram area remains on the screen infinitely until this command is set to OFF. :param eye: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Eye') """ eye_cmd_val = self._cmd_group.get_repcap_cmd_value(eye, repcap.Eye) response = self._core.io.query_str_with_opc(f'EYE{eye_cmd_val}:DISPlay:PERSistence:INFinite?') return Conversions.str_to_bool(response)