Source code for RsSmbv.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.EutraSimAnt: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:MIMO:ANTenna \n Snippet: value: enums.EutraSimAnt = driver.source.bb.eutra.downlink.mimo.get_antenna() \n (For backwards compatibility only) Sets the simulated antenna. The simulated antenna is determined by the remote commands of the mapping table. \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.EutraSimAnt)
[docs] def set_antenna(self, antenna: enums.EutraSimAnt) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:MIMO:ANTenna \n Snippet: driver.source.bb.eutra.downlink.mimo.set_antenna(antenna = enums.EutraSimAnt.ANT1) \n (For backwards compatibility only) Sets the simulated antenna. The simulated antenna is determined by the remote commands of the mapping table. \n :param antenna: ANT1| ANT2| ANT3| ANT4 """ param = Conversions.enum_scalar_to_str(antenna, enums.EutraSimAnt) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MIMO:ANTenna {param}')
# noinspection PyTypeChecker
[docs] def get_configuration(self) -> enums.EutraGlobMimoConf: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:MIMO:CONFiguration \n Snippet: value: enums.EutraGlobMimoConf = 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.EutraGlobMimoConf)
[docs] def set_configuration(self, configuration: enums.EutraGlobMimoConf) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:MIMO:CONFiguration \n Snippet: driver.source.bb.eutra.downlink.mimo.set_configuration(configuration = enums.EutraGlobMimoConf.SIBF) \n Sets the global MIMO configuration. \n :param configuration: TX1| TX2| TX4| SIBF """ param = Conversions.enum_scalar_to_str(configuration, enums.EutraGlobMimoConf) 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