Source code for rsrtx.Implementations.Display

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DisplayCls:
	"""
	| Commands in total: 46
	| Subgroups: 10
	| Direct child commands: 1
	"""

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

	@property
	def clr(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_clr'):
			from .Clr import ClrCls
			self._clr = ClrCls(self._core, self._cmd_group)
		return self._clr

	@property
	def color(self):
		"""
		| Commands in total: 11
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_color'):
			from .Color import ColorCls
			self._color = ColorCls(self._core, self._cmd_group)
		return self._color

	@property
	def diagram(self):
		"""
		| Commands in total: 9
		| Subgroups: 1
		| Direct child commands: 8
		"""
		if not hasattr(self, '_diagram'):
			from .Diagram import DiagramCls
			self._diagram = DiagramCls(self._core, self._cmd_group)
		return self._diagram

	@property
	def persistence(self):
		"""
		| Commands in total: 4
		| Subgroups: 0
		| Direct child commands: 4
		"""
		if not hasattr(self, '_persistence'):
			from .Persistence import PersistenceCls
			self._persistence = PersistenceCls(self._core, self._cmd_group)
		return self._persistence

	@property
	def sigBar(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_sigBar'):
			from .SigBar import SigBarCls
			self._sigBar = SigBarCls(self._core, self._cmd_group)
		return self._sigBar

	@property
	def trigger(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_trigger'):
			from .Trigger import TriggerCls
			self._trigger = TriggerCls(self._core, self._cmd_group)
		return self._trigger

	@property
	def resultBoxes(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_resultBoxes'):
			from .ResultBoxes import ResultBoxesCls
			self._resultBoxes = ResultBoxesCls(self._core, self._cmd_group)
		return self._resultBoxes

	@property
	def signal(self):
		"""
		| Commands in total: 12
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_signal'):
			from .Signal import SignalCls
			self._signal = SignalCls(self._core, self._cmd_group)
		return self._signal

	@property
	def gate(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_gate'):
			from .Gate import GateCls
			self._gate = GateCls(self._core, self._cmd_group)
		return self._gate

	@property
	def extended(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_extended'):
			from .Extended import ExtendedCls
			self._extended = ExtendedCls(self._core, self._cmd_group)
		return self._extended

[docs] def get_intensity(self) -> float: """ ``DISPlay:INTensity`` \n Snippet: ``value: float = driver.display.get_intensity()`` \n This value determines the strength of the waveform line in the diagram. Enter a percentage between 0 (not visible) and 100% (very strong) . The exact mapping of the cumulative value occurences according to the assigned color table is guaranteed only if the intensity is set to 50% (default) . All other intensity values falsify the mapping but may improve the visibility of the signal. :return: intensity: 0 to 100 """ response = self._core.io.query_str_with_opc('DISPlay:INTensity?') return Conversions.str_to_float(response)
[docs] def set_intensity(self, intensity: float) -> None: """ ``DISPlay:INTensity`` \n Snippet: ``driver.display.set_intensity(intensity = 1.0)`` \n This value determines the strength of the waveform line in the diagram. Enter a percentage between 0 (not visible) and 100% (very strong) . The exact mapping of the cumulative value occurences according to the assigned color table is guaranteed only if the intensity is set to 50% (default) . All other intensity values falsify the mapping but may improve the visibility of the signal. :param intensity: 0 to 100 """ param = Conversions.decimal_value_to_str(intensity) self._core.io.write_with_opc(f'DISPlay:INTensity {param}')
def clone(self) -> 'DisplayCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = DisplayCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group