Source code for RsSmw.Implementations.Source.Bb.Eutra.Downlink.Mimo

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class MimoCls: """Mimo commands group definition. 7 total commands, 2 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("mimo", core, parent) @property def apm(self): """apm commands group. 1 Sub-classes, 1 commands.""" if not hasattr(self, '_apm'): from .Apm import ApmCls self._apm = ApmCls(self._core, self._cmd_group) return self._apm @property def niot(self): """niot commands group. 0 Sub-classes, 1 commands.""" 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: """SCPI: [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. \n :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: """SCPI: [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. \n :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: """SCPI: [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. \n :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: """SCPI: [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. \n :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