from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class NcancelCls:
"""
| Commands in total: 5
| Subgroups: 3
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ncancel", core, parent)
@property
def average(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_average'):
from .Average import AverageCls
self._average = AverageCls(self._core, self._cmd_group)
return self._average
@property
def error(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_error'):
from .Error import ErrorCls
self._error = ErrorCls(self._core, self._cmd_group)
return self._error
@property
def file(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_file'):
from .File import FileCls
self._file = FileCls(self._core, self._cmd_group)
return self._file
[docs]
def start(self) -> None:
"""
``[SENSe]:ADJust:NCANcel:STARt`` \n
Snippet: ``driver.sense.adjust.ncancel.start()`` \n
Starts an I/Q noise cancellation process for the input signal using the specified reference signal. The result displays
are not changed.
"""
self._core.io.write(f'SENSe:ADJust:NCANcel:STARt')
[docs]
def start_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``[SENSe]:ADJust:NCANcel:STARt`` \n
Snippet: ``driver.sense.adjust.ncancel.start_with_opc()`` \n
Starts an I/Q noise cancellation process for the input signal using the specified reference signal. The result displays
are not changed.
Same as start, but waits for the operation to complete before continuing further. Use the RsFsw.utilities.opc_timeout_set() to set the timeout value.
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'SENSe:ADJust:NCANcel:STARt', opc_timeout_ms)
def clone(self) -> 'NcancelCls':
"""
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 = NcancelCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group