Source code for RsFsw.Implementations.Applications.K149_Uwb.Sense.Window.Display.RwConfig

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 RwConfigCls:
	"""
	| Commands in total: 5
	| Subgroups: 4
	| Direct child commands: 1
	"""

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

	@property
	def configure(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_configure'):
			from .Configure import ConfigureCls
			self._configure = ConfigureCls(self._core, self._cmd_group)
		return self._configure

	@property
	def group(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_group'):
			from .Group import GroupCls
			self._group = GroupCls(self._core, self._cmd_group)
		return self._group

	@property
	def link(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_link'):
			from .Link import LinkCls
			self._link = LinkCls(self._core, self._cmd_group)
		return self._link

	@property
	def packet(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_packet'):
			from .Packet import PacketCls
			self._packet = PacketCls(self._core, self._cmd_group)
		return self._packet

[docs] def set(self, config: enums.ConfigMode, window=repcap.Window.Default) -> None: """ ``SENSe[:WINDow<n>]:DISPlay:RWConfig`` \n Snippet: ``driver.applications.k149Uwb.sense.window.display.rwConfig.set(config = enums.ConfigMode.DEFault, window = repcap.Window.Default)`` \n Sets the result config configuration to default or user. :param config: DEFault | USER :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') """ param = Conversions.enum_scalar_to_str(config, enums.ConfigMode) window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) self._core.io.write(f'SENSe:WINDow{window_cmd_val}:DISPlay:RWConfig {param}')
# noinspection PyTypeChecker
[docs] def get(self, window=repcap.Window.Default) -> enums.ConfigMode: """ ``SENSe[:WINDow<n>]:DISPlay:RWConfig`` \n Snippet: ``value: enums.ConfigMode = driver.applications.k149Uwb.sense.window.display.rwConfig.get(window = repcap.Window.Default)`` \n Sets the result config configuration to default or user. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') :return: config: DEFault | USER """ window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) response = self._core.io.query_str(f'SENSe:WINDow{window_cmd_val}:DISPlay:RWConfig?') return Conversions.str_to_scalar_enum(response, enums.ConfigMode)
def clone(self) -> 'RwConfigCls': """ 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 = RwConfigCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group