Source code for RsFsw.Implementations.Applications.K10x_Lte.Display.Window.Mtable

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


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

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

[docs] def set(self, state: enums.AutoMode, window=repcap.Window.Default) -> None: """ ``DISPlay[:WINDow<n>]:MTABle`` \n Snippet: ``driver.applications.k10Xlte.display.window.mtable.set(state = enums.AutoMode.AUTO, window = repcap.Window.Default)`` \n Turns the marker table on and off. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') """ param = Conversions.enum_scalar_to_str(state, enums.AutoMode) window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) self._core.io.write(f'DISPlay:WINDow{window_cmd_val}:MTABle {param}')
# noinspection PyTypeChecker
[docs] def get(self, window=repcap.Window.Default) -> enums.AutoMode: """ ``DISPlay[:WINDow<n>]:MTABle`` \n Snippet: ``value: enums.AutoMode = driver.applications.k10Xlte.display.window.mtable.get(window = repcap.Window.Default)`` \n Turns the marker table on and off. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') """ window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) response = self._core.io.query_str(f'DISPlay:WINDow{window_cmd_val}:MTABle?') return Conversions.str_to_scalar_enum(response, enums.AutoMode)