from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ...... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PnLimitCls:
"""
| Commands in total: 8
| Subgroups: 7
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("pnLimit", core, parent)
@property
def fail(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_fail'):
from .Fail import FailCls
self._fail = FailCls(self._core, self._cmd_group)
return self._fail
@property
def auto(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_auto'):
from .Auto import AutoCls
self._auto = AutoCls(self._core, self._cmd_group)
return self._auto
@property
def fc(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_fc'):
from .Fc import FcCls
self._fc = FcCls(self._core, self._cmd_group)
return self._fc
@property
def typePy(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_typePy'):
from .TypePy import TypePyCls
self._typePy = TypePyCls(self._core, self._cmd_group)
return self._typePy
@property
def noise(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_noise'):
from .Noise import NoiseCls
self._noise = NoiseCls(self._core, self._cmd_group)
return self._noise
@property
def slope(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_slope'):
from .Slope import SlopeCls
self._slope = SlopeCls(self._core, self._cmd_group)
return self._slope
@property
def trace(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_trace'):
from .Trace import TraceCls
self._trace = TraceCls(self._core, self._cmd_group)
return self._trace
[docs]
def copy(self, window=repcap.Window.Default, targetLimitLine=repcap.TargetLimitLine.Nr1) -> None:
"""
``CALCulate<n>:PNLimit:COPY<k>`` \n
Snippet: ``driver.applications.k40PhaseNoise.calculate.pnLimit.copy(window = repcap.Window.Default, targetLimitLine = repcap.TargetLimitLine.Nr1)`` \n
Creates a new user limit line from the data of a phase noise limit line.
:param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate')
:param targetLimitLine: optional repeated capability selector. Default value: Nr1
"""
window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window)
targetLimitLine_cmd_val = self._cmd_group.get_repcap_cmd_value(targetLimitLine, repcap.TargetLimitLine)
self._core.io.write(f'CALCulate{window_cmd_val}:PNLimit:COPY{targetLimitLine_cmd_val}')
[docs]
def copy_with_opc(self, window=repcap.Window.Default, targetLimitLine=repcap.TargetLimitLine.Nr1, opc_timeout_ms: int = -1) -> None:
window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window)
targetLimitLine_cmd_val = self._cmd_group.get_repcap_cmd_value(targetLimitLine, repcap.TargetLimitLine)
"""
``CALCulate<n>:PNLimit:COPY<k>`` \n
Snippet: ``driver.applications.k40PhaseNoise.calculate.pnLimit.copy_with_opc(window = repcap.Window.Default, targetLimitLine = repcap.TargetLimitLine.Nr1)`` \n
Creates a new user limit line from the data of a phase noise limit line.
Same as copy, 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 targetLimitLine: optional repeated capability selector. Default value: Nr1
: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}:PNLimit:COPY{targetLimitLine_cmd_val}', opc_timeout_ms)
def clone(self) -> 'PnLimitCls':
"""
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 = PnLimitCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group