from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Utilities import trim_str_response
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class MimoCls:
"""Mimo commands group definition. 429 total commands, 6 Subgroups, 6 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mimo", core, parent)
@property
def antenna(self):
"""antenna commands group. 6 Sub-classes, 0 commands."""
if not hasattr(self, '_antenna'):
from .Antenna import AntennaCls
self._antenna = AntennaCls(self._core, self._cmd_group)
return self._antenna
@property
def copy(self):
"""copy commands group. 2 Sub-classes, 0 commands."""
if not hasattr(self, '_copy'):
from .Copy import CopyCls
self._copy = CopyCls(self._core, self._cmd_group)
return self._copy
@property
def power(self):
"""power commands group. 2 Sub-classes, 0 commands."""
if not hasattr(self, '_power'):
from .Power import PowerCls
self._power = PowerCls(self._core, self._cmd_group)
return self._power
@property
def scwi(self):
"""scwi commands group. 2 Sub-classes, 0 commands."""
if not hasattr(self, '_scwi'):
from .Scwi import ScwiCls
self._scwi = ScwiCls(self._core, self._cmd_group)
return self._scwi
@property
def tap(self):
"""tap commands group. 5 Sub-classes, 1 commands."""
if not hasattr(self, '_tap'):
from .Tap import TapCls
self._tap = TapCls(self._core, self._cmd_group)
return self._tap
@property
def tgn(self):
"""tgn commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_tgn'):
from .Tgn import TgnCls
self._tgn = TgnCls(self._core, self._cmd_group)
return self._tgn
[docs]
def get_capability(self) -> str:
"""SCPI: [SOURce<HW>]:CEMulation:MIMO:CAPability \n
Snippet: value: str = driver.source.cemulation.mimo.get_capability() \n
No command help available \n
:return: mimo_capability: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:MIMO:CAPability?')
return trim_str_response(response)
[docs]
def copy_all(self) -> None:
"""SCPI: [SOURce<HW>]:CEMulation:MIMO:COPY:ALL \n
Snippet: driver.source.cemulation.mimo.copy_all() \n
No command help available \n
"""
self._core.io.write(f'SOURce<HwInstance>:CEMulation:MIMO:COPY:ALL')
[docs]
def copy_all_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""SCPI: [SOURce<HW>]:CEMulation:MIMO:COPY:ALL \n
Snippet: driver.source.cemulation.mimo.copy_all_with_opc() \n
No command help available \n
Same as copy_all, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value. \n
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call."""
self._core.io.write_with_opc(f'SOURce<HwInstance>:CEMulation:MIMO:COPY:ALL', opc_timeout_ms)
[docs]
def set_md_load(self, md_load: str) -> None:
"""SCPI: [SOURce<HW>]:CEMulation:MIMO:MDLoad \n
Snippet: driver.source.cemulation.mimo.set_md_load(md_load = 'abc') \n
No command help available \n
:param md_load: No help available
"""
param = Conversions.value_to_quoted_str(md_load)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:MIMO:MDLoad {param}')
[docs]
def set_md_store(self, md_store: str) -> None:
"""SCPI: [SOURce<HW>]:CEMulation:MIMO:MDSTore \n
Snippet: driver.source.cemulation.mimo.set_md_store(md_store = 'abc') \n
No command help available \n
:param md_store: No help available
"""
param = Conversions.value_to_quoted_str(md_store)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:MIMO:MDSTore {param}')
[docs]
def get_mpower(self) -> float:
"""SCPI: [SOURce<HW>]:CEMulation:MIMO:MPOWer \n
Snippet: value: float = driver.source.cemulation.mimo.get_mpower() \n
No command help available \n
:return: mpower: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:MIMO:MPOWer?')
return Conversions.str_to_float(response)
[docs]
def set_mpower(self, mpower: float) -> None:
"""SCPI: [SOURce<HW>]:CEMulation:MIMO:MPOWer \n
Snippet: driver.source.cemulation.mimo.set_mpower(mpower = 1.0) \n
No command help available \n
:param mpower: No help available
"""
param = Conversions.decimal_value_to_str(mpower)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:MIMO:MPOWer {param}')
# noinspection PyTypeChecker
[docs]
def get_subset(self) -> enums.FadMimoSubSet:
"""SCPI: [SOURce<HW>]:CEMulation:MIMO:SUBSet \n
Snippet: value: enums.FadMimoSubSet = driver.source.cemulation.mimo.get_subset() \n
No command help available \n
:return: subset: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:MIMO:SUBSet?')
return Conversions.str_to_scalar_enum(response, enums.FadMimoSubSet)
[docs]
def set_subset(self, subset: enums.FadMimoSubSet) -> None:
"""SCPI: [SOURce<HW>]:CEMulation:MIMO:SUBSet \n
Snippet: driver.source.cemulation.mimo.set_subset(subset = enums.FadMimoSubSet.ALL) \n
No command help available \n
:param subset: No help available
"""
param = Conversions.enum_scalar_to_str(subset, enums.FadMimoSubSet)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:MIMO:SUBSet {param}')
def clone(self) -> 'MimoCls':
"""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 = MimoCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group