from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........ import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class GroupCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("group", core, parent)
[docs]
def set(self, group: int, window=repcap.Window.Default) -> None:
"""
``SENSe[:WINDow<n>]:DISPlay:RWConfig:GROup`` \n
Snippet: ``driver.applications.k149Uwb.sense.window.display.rwConfig.group.set(group = 1, window = repcap.Window.Default)`` \n
Sets the Group for this window and for any windows this window is linked to.
:param group: 1..n Window
:param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window')
"""
param = Conversions.decimal_value_to_str(group)
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:GROup {param}')
[docs]
def get(self, window=repcap.Window.Default) -> int:
"""
``SENSe[:WINDow<n>]:DISPlay:RWConfig:GROup`` \n
Snippet: ``value: int = driver.applications.k149Uwb.sense.window.display.rwConfig.group.get(window = repcap.Window.Default)`` \n
Sets the Group for this window and for any windows this window is linked to.
: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'SENSe:WINDow{window_cmd_val}:DISPlay:RWConfig:GROup?')
return Conversions.str_to_int(response)