from typing import List
from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from ....... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DataCls:
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("data", core, parent)
@property
def x(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_x'):
from .X import XCls
self._x = XCls(self._core, self._cmd_group)
return self._x
[docs]
def get(self, window=repcap.Window.Default, subWindow=repcap.SubWindow.Default) -> List[float]:
"""
``TRACe<n>[:SUBWindow<w>][:DATA]`` \n
Snippet: ``value: List[float] = driver.applications.k6Pulse.trace.subwindow.data.get(window = repcap.Window.Default, subWindow = repcap.SubWindow.Default)`` \n
No help available
:param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trace')
:param subWindow: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Subwindow')
"""
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)
response = self._core.io.query_bin_or_ascii_float_list(f'FORMAT REAL,32;TRACe{window_cmd_val}:SUBWindow{subWindow_cmd_val}:DATA?')
return response
def clone(self) -> 'DataCls':
"""
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 = DataCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group