Source code for RsNgx.Implementations.Display.Window.Text

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class TextCls: """Text commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("text", core, parent)
[docs] def set_data(self, custom_message: str) -> None: """SCPI: DISPlay[:WINDow]:TEXT[:DATA] \n Snippet: driver.display.window.text.set_data(custom_message = r1) \n Shows the text message box on the front display. \n :param custom_message: New value for text message box. """ param = Conversions.value_to_str(custom_message) self._core.io.write(f'DISPlay:WINDow:TEXT:DATA {param}')
[docs] def clear(self) -> None: """SCPI: DISPlay[:WINDow]:TEXT:CLEar \n Snippet: driver.display.window.text.clear() \n Clears the text message box on the front display. \n """ self._core.io.write(f'DISPlay:WINDow:TEXT:CLEar')
[docs] def clear_with_opc(self, opc_timeout_ms: int = -1) -> None: """SCPI: DISPlay[:WINDow]:TEXT:CLEar \n Snippet: driver.display.window.text.clear_with_opc() \n Clears the text message box on the front display. \n Same as clear, but waits for the operation to complete before continuing further. Use the RsNgx.utilities.opc_timeout_set() to set the timeout value. \n :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.""" self._core.io.write_with_opc(f'DISPlay:WINDow:TEXT:CLEar', opc_timeout_ms)