from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MimoCls:
"""
| Commands in total: 7
| Subgroups: 2
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mimo", core, parent)
@property
def apm(self):
"""
| Commands in total: 4
| Subgroups: 1
| Direct child commands: 1
"""
if not hasattr(self, '_apm'):
from .Apm import ApmCls
self._apm = ApmCls(self._core, self._cmd_group)
return self._apm
@property
def niot(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_niot'):
from .Niot import NiotCls
self._niot = NiotCls(self._core, self._cmd_group)
return self._niot
# noinspection PyTypeChecker
[docs]
def get_antenna(self) -> enums.SimAnt:
"""
``[SOURce<HW>]:BB:EUTRa:DL:MIMO:ANTenna`` \n
Snippet: ``value: enums.SimAnt = driver.source.bb.eutra.downlink.mimo.get_antenna()`` \n
Sets the simulated antenna.
:return: antenna: ANT1 | ANT2 | ANT3 | ANT4
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MIMO:ANTenna?')
return Conversions.str_to_scalar_enum(response, enums.SimAnt)
[docs]
def set_antenna(self, antenna: enums.SimAnt) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:DL:MIMO:ANTenna`` \n
Snippet: ``driver.source.bb.eutra.downlink.mimo.set_antenna(antenna = enums.SimAnt.ANT1)`` \n
Sets the simulated antenna.
:param antenna: ANT1 | ANT2 | ANT3 | ANT4
"""
param = Conversions.enum_scalar_to_str(antenna, enums.SimAnt)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MIMO:ANTenna {param}')
# noinspection PyTypeChecker
[docs]
def get_configuration(self) -> enums.GlobMimoConf:
"""
``[SOURce<HW>]:BB:EUTRa:DL:MIMO:CONFiguration`` \n
Snippet: ``value: enums.GlobMimoConf = driver.source.bb.eutra.downlink.mimo.get_configuration()`` \n
Sets the global MIMO configuration.
:return: configuration: TX1 | TX2 | TX4 | SIBF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MIMO:CONFiguration?')
return Conversions.str_to_scalar_enum(response, enums.GlobMimoConf)
[docs]
def set_configuration(self, configuration: enums.GlobMimoConf) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:DL:MIMO:CONFiguration`` \n
Snippet: ``driver.source.bb.eutra.downlink.mimo.set_configuration(configuration = enums.GlobMimoConf.SIBF)`` \n
Sets the global MIMO configuration.
:param configuration: TX1 | TX2 | TX4 | SIBF
"""
param = Conversions.enum_scalar_to_str(configuration, enums.GlobMimoConf)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MIMO:CONFiguration {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