from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ...... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SpectrogramCls:
"""
| Commands in total: 9
| Subgroups: 4
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("spectrogram", core, parent)
@property
def frame(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_frame'):
from .Frame import FrameCls
self._frame = FrameCls(self._core, self._cmd_group)
return self._frame
@property
def hdepth(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_hdepth'):
from .Hdepth import HdepthCls
self._hdepth = HdepthCls(self._core, self._cmd_group)
return self._hdepth
@property
def tstamp(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_tstamp'):
from .Tstamp import TstampCls
self._tstamp = TstampCls(self._core, self._cmd_group)
return self._tstamp
@property
def tresolution(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
if not hasattr(self, '_tresolution'):
from .Tresolution import TresolutionCls
self._tresolution = TresolutionCls(self._core, self._cmd_group)
return self._tresolution
[docs]
def clear(self, window=repcap.Window.Default) -> None:
"""
``CALCulate<n>:SPECtrogram:CLEar`` \n
Snippet: ``driver.applications.k60Transient.calculate.spectrogram.clear(window = repcap.Window.Default)`` \n
No help available
:param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate')
"""
window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window)
self._core.io.write(f'CALCulate{window_cmd_val}:SPECtrogram:CLEar')
[docs]
def clear_with_opc(self, window=repcap.Window.Default, opc_timeout_ms: int = -1) -> None:
window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window)
"""
``CALCulate<n>:SPECtrogram:CLEar`` \n
Snippet: ``driver.applications.k60Transient.calculate.spectrogram.clear_with_opc(window = repcap.Window.Default)`` \n
No help available
Same as clear, but waits for the operation to complete before continuing further. Use the RsFsw.utilities.opc_timeout_set() to set the timeout value.
:param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate')
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'CALCulate{window_cmd_val}:SPECtrogram:CLEar', opc_timeout_ms)
[docs]
def clear_all(self, window=repcap.Window.Default) -> None:
"""
``CALCulate<n>:SPECtrogram:CLEar:ALL`` \n
Snippet: ``driver.applications.k60Transient.calculate.spectrogram.clear_all(window = repcap.Window.Default)`` \n
No help available
:param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate')
"""
window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window)
self._core.io.write(f'CALCulate{window_cmd_val}:SPECtrogram:CLEar:ALL')
[docs]
def clear_all_with_opc(self, window=repcap.Window.Default, opc_timeout_ms: int = -1) -> None:
window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window)
"""
``CALCulate<n>:SPECtrogram:CLEar:ALL`` \n
Snippet: ``driver.applications.k60Transient.calculate.spectrogram.clear_all_with_opc(window = repcap.Window.Default)`` \n
No help available
Same as clear_all, but waits for the operation to complete before continuing further. Use the RsFsw.utilities.opc_timeout_set() to set the timeout value.
:param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate')
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'CALCulate{window_cmd_val}:SPECtrogram:CLEar:ALL', opc_timeout_ms)
def clone(self) -> 'SpectrogramCls':
"""
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 = SpectrogramCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group