Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Display.Window.Stable.Item

from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........Internal.Types import DataType
from ........Internal.ArgSingleList import ArgSingleList
from ........Internal.ArgSingle import ArgSingle
from ........ import enums
from ........ import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ItemCls:
	"""
	| Commands in total: 4
	| Subgroups: 3
	| Direct child commands: 1
	"""

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

	@property
	def maccuracy(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_maccuracy'):
			from .Maccuracy import MaccuracyCls
			self._maccuracy = MaccuracyCls(self._core, self._cmd_group)
		return self._maccuracy

	@property
	def power(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_power'):
			from .Power import PowerCls
			self._power = PowerCls(self._core, self._cmd_group)
		return self._power

	@property
	def vcurrent(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_vcurrent'):
			from .Vcurrent import VcurrentCls
			self._vcurrent = VcurrentCls(self._core, self._cmd_group)
		return self._vcurrent

[docs] def set(self, item: enums.TableItem, state: bool, window=repcap.Window.Default) -> None: """ ``DISPlay[:WINDow<n>]:STABle:ITEM`` \n Snippet: ``driver.applications.k18AmplifierEt.display.window.stable.item.set(item = enums.TableItem.ADRoop, state = False, window = repcap.Window.Default)`` \n This command adds and removes results from the statistics table. :param item: Selects the result. See the table in the desription of method ``RsFsw.applications.k91Wlan.display.window.table.item.set()`` for a list of available parameters. :param state: ON | OFF | 1 | 0 :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') """ param = ArgSingleList().compose_cmd_string(ArgSingle('item', item, DataType.Enum, enums.TableItem), ArgSingle('state', state, DataType.Boolean)) window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) self._core.io.write(f'DISPlay:WINDow{window_cmd_val}:STABle:ITEM {param}'.rstrip())
[docs] def get(self, item: enums.TableItem, window=repcap.Window.Default) -> bool: """ ``DISPlay[:WINDow<n>]:STABle:ITEM`` \n Snippet: ``value: bool = driver.applications.k18AmplifierEt.display.window.stable.item.get(item = enums.TableItem.ADRoop, window = repcap.Window.Default)`` \n This command adds and removes results from the statistics table. :param item: Selects the result. See the table in the desription of method ``RsFsw.applications.k91Wlan.display.window.table.item.set()`` for a list of available parameters. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') :return: state: ON | OFF | 1 | 0 """ param = Conversions.enum_scalar_to_str(item, enums.TableItem) 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}:STABle:ITEM? {param}') return Conversions.str_to_bool(response)
def clone(self) -> 'ItemCls': """ 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 = ItemCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group