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
class MimoCls:
"""
| Commands in total: 429
| Subgroups: 6
| Direct child commands: 6
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mimo", core, parent)
@property
def antenna(self):
"""
| Commands in total: 27
| Subgroups: 6
| Direct child commands: 0
"""
if not hasattr(self, '_antenna'):
from .Antenna import AntennaCls
self._antenna = AntennaCls(self._core, self._cmd_group)
return self._antenna
@property
def copy(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_copy'):
from .Copy import CopyCls
self._copy = CopyCls(self._core, self._cmd_group)
return self._copy
@property
def power(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_power'):
from .Power import PowerCls
self._power = PowerCls(self._core, self._cmd_group)
return self._power
@property
def scwi(self):
"""
| Commands in total: 11
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_scwi'):
from .Scwi import ScwiCls
self._scwi = ScwiCls(self._core, self._cmd_group)
return self._scwi
@property
def tap(self):
"""
| Commands in total: 379
| Subgroups: 5
| Direct child commands: 1
"""
if not hasattr(self, '_tap'):
from .Tap import TapCls
self._tap = TapCls(self._core, self._cmd_group)
return self._tap
@property
def tgn(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 0
"""
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:
"""
``[SOURce<HW>]:CEMulation:MIMO:CAPability`` \n
Snippet: ``value: str = driver.source.cemulation.mimo.get_capability()`` \n
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:
"""
``[SOURce<HW>]:CEMulation:MIMO:COPY:ALL`` \n
Snippet: ``driver.source.cemulation.mimo.copy_all()`` \n
No help available
"""
self._core.io.write(f'SOURce<HwInstance>:CEMulation:MIMO:COPY:ALL')
[docs]
def copy_all_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``[SOURce<HW>]:CEMulation:MIMO:COPY:ALL`` \n
Snippet: ``driver.source.cemulation.mimo.copy_all_with_opc()`` \n
No help available
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.
: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:
"""
``[SOURce<HW>]:CEMulation:MIMO:MDLoad`` \n
Snippet: ``driver.source.cemulation.mimo.set_md_load(md_load = 'abc')`` \n
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:
"""
``[SOURce<HW>]:CEMulation:MIMO:MDSTore`` \n
Snippet: ``driver.source.cemulation.mimo.set_md_store(md_store = 'abc')`` \n
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:
"""
``[SOURce<HW>]:CEMulation:MIMO:MPOWer`` \n
Snippet: ``value: float = driver.source.cemulation.mimo.get_mpower()`` \n
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:
"""
``[SOURce<HW>]:CEMulation:MIMO:MPOWer`` \n
Snippet: ``driver.source.cemulation.mimo.set_mpower(mpower = 1.0)`` \n
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:
"""
``[SOURce<HW>]:CEMulation:MIMO:SUBSet`` \n
Snippet: ``value: enums.FadMimoSubSet = driver.source.cemulation.mimo.get_subset()`` \n
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:
"""
``[SOURce<HW>]:CEMulation:MIMO:SUBSet`` \n
Snippet: ``driver.source.cemulation.mimo.set_subset(subset = enums.FadMimoSubSet.ALL)`` \n
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