from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CorrectionCls:
"""
| Commands in total: 121
| Subgroups: 8
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("correction", core, parent)
@property
def fresponse(self):
"""
| Commands in total: 89
| Subgroups: 4
| Direct child commands: 0
"""
if not hasattr(self, '_fresponse'):
from .Fresponse import FresponseCls
self._fresponse = FresponseCls(self._core, self._cmd_group)
return self._fresponse
@property
def cvl(self):
"""
| Commands in total: 11
| Subgroups: 10
| Direct child commands: 1
"""
if not hasattr(self, '_cvl'):
from .Cvl import CvlCls
self._cvl = CvlCls(self._core, self._cmd_group)
return self._cvl
@property
def ploss(self):
"""
| Commands in total: 3
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_ploss'):
from .Ploss import PlossCls
self._ploss = PlossCls(self._core, self._cmd_group)
return self._ploss
@property
def vswr(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_vswr'):
from .Vswr import VswrCls
self._vswr = VswrCls(self._core, self._cmd_group)
return self._vswr
@property
def transducer(self):
"""
| Commands in total: 13
| Subgroups: 11
| Direct child commands: 1
"""
if not hasattr(self, '_transducer'):
from .Transducer import TransducerCls
self._transducer = TransducerCls(self._core, self._cmd_group)
return self._transducer
@property
def method(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_method'):
from .Method import MethodCls
self._method = MethodCls(self._core, self._cmd_group)
return self._method
@property
def collect(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_collect'):
from .Collect import CollectCls
self._collect = CollectCls(self._core, self._cmd_group)
return self._collect
@property
def state(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_state'):
from .State import StateCls
self._state = StateCls(self._core, self._cmd_group)
return self._state
[docs]
def recall(self) -> None:
"""
``[SENSe]:CORRection:RECall`` \n
Snippet: ``driver.sense.correction.recall()`` \n
Restores the measurement configuration used for calibration. Is only available if External Generator Control (R&S
FSW-B10) is installed and active.
"""
self._core.io.write(f'SENSe:CORRection:RECall')
[docs]
def recall_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``[SENSe]:CORRection:RECall`` \n
Snippet: ``driver.sense.correction.recall_with_opc()`` \n
Restores the measurement configuration used for calibration. Is only available if External Generator Control (R&S
FSW-B10) is installed and active.
Same as recall, 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:CORRection:RECall', opc_timeout_ms)
def clone(self) -> 'CorrectionCls':
"""
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 = CorrectionCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group