from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal.Types import DataType
from ........Internal.StructBase import StructBase
from ........Internal.ArgStruct import ArgStruct
from ........Internal.ArgSingleList import ArgSingleList
from ........Internal.ArgSingle import ArgSingle
from ........ import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class AreaCls:
"""Area commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("area", core, parent)
[docs] def set(self, arg_0: float, arg_1: float, arg_2: float, arg_3: float, window=repcap.Window.Default, subWindow=repcap.SubWindow.Default) -> None:
"""SCPI: DISPlay[:WINDow<n>][:SUBWindow<w>]:ZOOM:AREA \n
Snippet: driver.applications.k9X11Ad.display.window.subwindow.zoom.area.set(arg_0 = 1.0, arg_1 = 1.0, arg_2 = 1.0, arg_3 = 1.0, window = repcap.Window.Default, subWindow = repcap.SubWindow.Default) \n
Defines the zoom area. To define a zoom area, you first have to turn the zoom on. \n
:param arg_0: No help available
:param arg_1: No help available
:param arg_2: No help available
:param arg_3: No help available
:param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window')
:param subWindow: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Subwindow')
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('arg_0', arg_0, DataType.Float), ArgSingle('arg_1', arg_1, DataType.Float), ArgSingle('arg_2', arg_2, DataType.Float), ArgSingle('arg_3', arg_3, DataType.Float))
window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window)
subWindow_cmd_val = self._cmd_group.get_repcap_cmd_value(subWindow, repcap.SubWindow)
self._core.io.write(f'DISPlay:WINDow{window_cmd_val}:SUBWindow{subWindow_cmd_val}:ZOOM:AREA {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class AreaStruct(StructBase):
"""Response structure. Fields: \n
- Arg_0: float: No parameter help available
- Arg_1: float: No parameter help available
- Arg_2: float: No parameter help available
- Arg_3: float: No parameter help available"""
__meta_args_list = [
ArgStruct.scalar_float('Arg_0'),
ArgStruct.scalar_float('Arg_1'),
ArgStruct.scalar_float('Arg_2'),
ArgStruct.scalar_float('Arg_3')]
def __init__(self):
StructBase.__init__(self, self)
self.Arg_0: float = None
self.Arg_1: float = None
self.Arg_2: float = None
self.Arg_3: float = None
[docs] def get(self, window=repcap.Window.Default, subWindow=repcap.SubWindow.Default) -> AreaStruct:
"""SCPI: DISPlay[:WINDow<n>][:SUBWindow<w>]:ZOOM:AREA \n
Snippet: value: AreaStruct = driver.applications.k9X11Ad.display.window.subwindow.zoom.area.get(window = repcap.Window.Default, subWindow = repcap.SubWindow.Default) \n
Defines the zoom area. To define a zoom area, you first have to turn the zoom on. \n
:param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window')
:param subWindow: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Subwindow')
:return: structure: for return value, see the help for AreaStruct structure arguments."""
window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window)
subWindow_cmd_val = self._cmd_group.get_repcap_cmd_value(subWindow, repcap.SubWindow)
return self._core.io.query_struct(f'DISPlay:WINDow{window_cmd_val}:SUBWindow{subWindow_cmd_val}:ZOOM:AREA?', self.__class__.AreaStruct())