from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class K91_WlanCls:
"""
| Commands in total: 562
| Subgroups: 17
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("k91_Wlan", core, parent)
@property
def layout(self):
"""
| Commands in total: 7
| Subgroups: 7
| Direct child commands: 0
"""
if not hasattr(self, '_layout'):
from .Layout import LayoutCls
self._layout = LayoutCls(self._core, self._cmd_group)
return self._layout
@property
def massMemory(self):
"""
| Commands in total: 10
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_massMemory'):
from .MassMemory import MassMemoryCls
self._massMemory = MassMemoryCls(self._core, self._cmd_group)
return self._massMemory
@property
def trace(self):
"""
| Commands in total: 7
| Subgroups: 2
| Direct child commands: 1
"""
if not hasattr(self, '_trace'):
from .Trace import TraceCls
self._trace = TraceCls(self._core, self._cmd_group)
return self._trace
@property
def configure(self):
"""
| Commands in total: 94
| Subgroups: 4
| Direct child commands: 0
"""
if not hasattr(self, '_configure'):
from .Configure import ConfigureCls
self._configure = ConfigureCls(self._core, self._cmd_group)
return self._configure
@property
def calculate(self):
"""
| Commands in total: 117
| Subgroups: 11
| Direct child commands: 0
"""
if not hasattr(self, '_calculate'):
from .Calculate import CalculateCls
self._calculate = CalculateCls(self._core, self._cmd_group)
return self._calculate
@property
def fetch(self):
"""
| Commands in total: 105
| Subgroups: 6
| Direct child commands: 0
"""
if not hasattr(self, '_fetch'):
from .Fetch import FetchCls
self._fetch = FetchCls(self._core, self._cmd_group)
return self._fetch
@property
def sense(self):
"""
| Commands in total: 119
| Subgroups: 13
| Direct child commands: 0
"""
if not hasattr(self, '_sense'):
from .Sense import SenseCls
self._sense = SenseCls(self._core, self._cmd_group)
return self._sense
@property
def calibration(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_calibration'):
from .Calibration import CalibrationCls
self._calibration = CalibrationCls(self._core, self._cmd_group)
return self._calibration
@property
def display(self):
"""
| Commands in total: 49
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_display'):
from .Display import DisplayCls
self._display = DisplayCls(self._core, self._cmd_group)
return self._display
@property
def formatPy(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_formatPy'):
from .FormatPy import FormatPyCls
self._formatPy = FormatPyCls(self._core, self._cmd_group)
return self._formatPy
@property
def initiate(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_initiate'):
from .Initiate import InitiateCls
self._initiate = InitiateCls(self._core, self._cmd_group)
return self._initiate
@property
def inputPy(self):
"""
| Commands in total: 24
| Subgroups: 12
| Direct child commands: 0
"""
if not hasattr(self, '_inputPy'):
from .InputPy import InputPyCls
self._inputPy = InputPyCls(self._core, self._cmd_group)
return self._inputPy
@property
def output(self):
"""
| Commands in total: 5
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_output'):
from .Output import OutputCls
self._output = OutputCls(self._core, self._cmd_group)
return self._output
@property
def system(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_system'):
from .System import SystemCls
self._system = SystemCls(self._core, self._cmd_group)
return self._system
@property
def trigger(self):
"""
| Commands in total: 12
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_trigger'):
from .Trigger import TriggerCls
self._trigger = TriggerCls(self._core, self._cmd_group)
return self._trigger
@property
def triggerInvoke(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_triggerInvoke'):
from .TriggerInvoke import TriggerInvokeCls
self._triggerInvoke = TriggerInvokeCls(self._core, self._cmd_group)
return self._triggerInvoke
@property
def unit(self):
"""
| Commands in total: 5
| Subgroups: 5
| Direct child commands: 0
"""
if not hasattr(self, '_unit'):
from .Unit import UnitCls
self._unit = UnitCls(self._core, self._cmd_group)
return self._unit
[docs]
def abort(self) -> None:
"""
``ABORt`` \n
Snippet: ``driver.applications.k91_Wlan.abort()`` \n
Aborts the measurement in the current channel and resets the trigger system. To prevent overlapping execution of the
subsequent command before the measurement has been aborted successfully, use the ``*OPC?`` or ``*WAI`` command after
method ``RsFsw.#abort CMDLINKRESOLVED] and before the next command. For details on overlapping execution see . To abort a
sequence of measurements by the Sequencer, use the [CMDLINKRESOLVED initiate.sequencer.abort()`` command. Note on blocked
remote control programs: If a sequential command cannot be completed, for example because a triggered sweep never
receives a trigger, the remote control program will never finish and the remote channel to the FSW is blocked for further
commands. In this case, you must interrupt processing on the remote channel first in order to abort the measurement.
To do so, send a 'Device Clear' command from the control instrument to the FSW on a parallel channel to clear all
currently active remote channels. Depending on the used interface and protocol, send the following commands:
In Spectrum mode only: \n
- Visa: viClear
- GPIB: ibclr
- RSIB: RSDLLibclr
Now you can send the [CMDLINKRESOLVED #abort CMDLINKRESOLVED] command on the remote channel performing the measurement.
"""
self._core.io.write(f'ABORt')
[docs]
def abort_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``ABORt`` \n
Snippet: ``driver.applications.k91_Wlan.abort_with_opc()`` \n
Aborts the measurement in the current channel and resets the trigger system. To prevent overlapping execution of the
subsequent command before the measurement has been aborted successfully, use the ``*OPC?`` or ``*WAI`` command after
method ``RsFsw.#abort CMDLINKRESOLVED] and before the next command. For details on overlapping execution see . To abort a
sequence of measurements by the Sequencer, use the [CMDLINKRESOLVED initiate.sequencer.abort()`` command. Note on blocked
remote control programs: If a sequential command cannot be completed, for example because a triggered sweep never
receives a trigger, the remote control program will never finish and the remote channel to the FSW is blocked for further
commands. In this case, you must interrupt processing on the remote channel first in order to abort the measurement.
To do so, send a 'Device Clear' command from the control instrument to the FSW on a parallel channel to clear all
currently active remote channels. Depending on the used interface and protocol, send the following commands:
In Spectrum mode only: \n
- Visa: viClear
- GPIB: ibclr
- RSIB: RSDLLibclr
Now you can send the [CMDLINKRESOLVED #abort CMDLINKRESOLVED] command on the remote channel performing the measurement.
Same as abort, 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'ABORt', opc_timeout_ms)
def clone(self) -> 'K91_WlanCls':
"""
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 = K91_WlanCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group