from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DisplayCls:
"""
| Commands in total: 59
| Subgroups: 10
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("display", core, parent)
@property
def color(self):
"""
| Commands in total: 4
| Subgroups: 1
| 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 backlight(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_backlight'):
from .Backlight import BacklightCls
self._backlight = BacklightCls(self._core, self._cmd_group)
return self._backlight
@property
def dialog(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_dialog'):
from .Dialog import DialogCls
self._dialog = DialogCls(self._core, self._cmd_group)
return self._dialog
@property
def result(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_result'):
from .Result import ResultCls
self._result = ResultCls(self._core, self._cmd_group)
return self._result
@property
def annotation(self):
"""
| Commands in total: 32
| Subgroups: 5
| Direct child commands: 2
"""
if not hasattr(self, '_annotation'):
from .Annotation import AnnotationCls
self._annotation = AnnotationCls(self._core, self._cmd_group)
return self._annotation
@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 signal(self):
"""
| Commands in total: 1
| 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 diagram(self):
"""
| Commands in total: 8
| Subgroups: 0
| 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 toolbar(self):
"""
| Commands in total: 3
| Subgroups: 2
| Direct child commands: 1
"""
if not hasattr(self, '_toolbar'):
from .Toolbar import ToolbarCls
self._toolbar = ToolbarCls(self._core, self._cmd_group)
return self._toolbar
[docs]
def get_intensity(self) -> float:
"""
``DISPlay:INTensity`` \n
Snippet: ``value: float = driver.display.get_intensity()`` \n
The intensity determines the strength of the waveform line in the diagram. Enter a percentage between 0 (not visible) and
100% (strong) . The default value is 50%.
:return: intensity: 0 to 100
"""
response = self._core.io.query_str('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
The intensity determines the strength of the waveform line in the diagram. Enter a percentage between 0 (not visible) and
100% (strong) . The default value is 50%.
:param intensity: 0 to 100
"""
param = Conversions.decimal_value_to_str(intensity)
self._core.io.write(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