Source code for rsrtx.Implementations.Display.Extended

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


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

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

[docs] def get_pordialogs(self) -> bool: """ ``DISPlay:EXTended:PORDialogs`` \n Snippet: ``value: bool = driver.display.extended.get_pordialogs()`` \n If an external monitor is connected to the instrument, enables the display of result boxes on the external monitor. :return: pop_out_res_dialogs: OFF | ON """ response = self._core.io.query_str('DISPlay:EXTended:PORDialogs?') return Conversions.str_to_bool(response)
[docs] def set_pordialogs(self, pop_out_res_dialogs: bool) -> None: """ ``DISPlay:EXTended:PORDialogs`` \n Snippet: ``driver.display.extended.set_pordialogs(pop_out_res_dialogs = False)`` \n If an external monitor is connected to the instrument, enables the display of result boxes on the external monitor. :param pop_out_res_dialogs: OFF | ON """ param = Conversions.bool_to_str(pop_out_res_dialogs) self._core.io.write(f'DISPlay:EXTended:PORDialogs {param}')
[docs] def get_posdialogs(self) -> bool: """ ``DISPlay:EXTended:POSDialogs`` \n Snippet: ``value: bool = driver.display.extended.get_posdialogs()`` \n If an external monitor is connected to the instrument, enables the display of dialog boxes on the external monitor. :return: pop_out_sett_dialogs: OFF | ON """ response = self._core.io.query_str('DISPlay:EXTended:POSDialogs?') return Conversions.str_to_bool(response)
[docs] def set_posdialogs(self, pop_out_sett_dialogs: bool) -> None: """ ``DISPlay:EXTended:POSDialogs`` \n Snippet: ``driver.display.extended.set_posdialogs(pop_out_sett_dialogs = False)`` \n If an external monitor is connected to the instrument, enables the display of dialog boxes on the external monitor. :param pop_out_sett_dialogs: OFF | ON """ param = Conversions.bool_to_str(pop_out_sett_dialogs) self._core.io.write(f'DISPlay:EXTended:POSDialogs {param}')