from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ...... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ConfigCls:
"""
| Commands in total: 11
| Subgroups: 5
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("config", core, parent)
@property
def enable(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_enable'):
from .Enable import EnableCls
self._enable = EnableCls(self._core, self._cmd_group)
return self._enable
@property
def mode(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_mode'):
from .Mode import ModeCls
self._mode = ModeCls(self._core, self._cmd_group)
return self._mode
@property
def component(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_component'):
from .Component import ComponentCls
self._component = ComponentCls(self._core, self._cmd_group)
return self._component
@property
def base(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_base'):
from .Base import BaseCls
self._base = BaseCls(self._core, self._cmd_group)
return self._base
@property
def category(self):
"""
| Commands in total: 6
| Subgroups: 4
| Direct child commands: 0
"""
if not hasattr(self, '_category'):
from .Category import CategoryCls
self._category = CategoryCls(self._core, self._cmd_group)
return self._category
[docs]
def preset(self, advJitter=repcap.AdvJitter.Default) -> None:
"""
``ADVJitter<*>:RESult:PAMNoise:CONFig:PRESet`` \n
Snippet: ``driver.advJitter.result.pamNoise.config.preset(advJitter = repcap.AdvJitter.Default)`` \n
Adds a pre-defined preset configuration for the selected component to the active components.
:param advJitter: optional repeated capability selector. Default value: Nr1 (settable in the interface 'AdvJitter')
"""
advJitter_cmd_val = self._cmd_group.get_repcap_cmd_value(advJitter, repcap.AdvJitter)
self._core.io.write(f'ADVJitter{advJitter_cmd_val}:RESult:PAMNoise:CONFig:PRESet')
[docs]
def preset_and_wait(self, advJitter=repcap.AdvJitter.Default, opc_timeout_ms: int = -1) -> None:
advJitter_cmd_val = self._cmd_group.get_repcap_cmd_value(advJitter, repcap.AdvJitter)
"""
``ADVJitter<*>:RESult:PAMNoise:CONFig:PRESet`` \n
Snippet: ``driver.advJitter.result.pamNoise.config.preset_and_wait(advJitter = repcap.AdvJitter.Default)`` \n
Adds a pre-defined preset configuration for the selected component to the active components.
Same as preset, but waits for the operation to complete before continuing further. Use the RsRtx.utilities.opc_timeout_set() to set the timeout value.
:param advJitter: optional repeated capability selector. Default value: Nr1 (settable in the interface 'AdvJitter')
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'ADVJitter{advJitter_cmd_val}:RESult:PAMNoise:CONFig:PRESet', opc_timeout_ms)
def clone(self) -> 'ConfigCls':
"""
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 = ConfigCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group