Source code for RsCmwLteSig.Implementations.Configure.Connection.Scc.SchModel.Mselection.Mimo

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class MimoCls: """Mimo commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("mimo", core, parent)
[docs] def set(self, selection: enums.MimoMatrixSelection, secondaryCompCarrier=repcap.SecondaryCompCarrier.Default) -> None: """SCPI: CONFigure:LTE:SIGNaling<instance>:CONNection:SCC<Carrier>:SCHModel:MSELection:MIMO<Mimo> \n Snippet: driver.configure.connection.scc.schModel.mselection.mimo.set(selection = enums.MimoMatrixSelection.CM3Gpp, secondaryCompCarrier = repcap.SecondaryCompCarrier.Default) \n Selects a predefined channel matrix or the user-defined channel matrix for MIMO 4x4. \n :param selection: UDEFined | CM3Gpp | HADamard | IDENtity User-defined matrix, 3GPP channel matrix, Hadamard matrix, identity matrix :param secondaryCompCarrier: optional repeated capability selector. Default value: CC1 (settable in the interface 'Scc') """ param = Conversions.enum_scalar_to_str(selection, enums.MimoMatrixSelection) secondaryCompCarrier_cmd_val = self._cmd_group.get_repcap_cmd_value(secondaryCompCarrier, repcap.SecondaryCompCarrier) self._core.io.write(f'CONFigure:LTE:SIGNaling<Instance>:CONNection:SCC{secondaryCompCarrier_cmd_val}:SCHModel:MSELection:MIMO44 {param}')
# noinspection PyTypeChecker
[docs] def get(self, secondaryCompCarrier=repcap.SecondaryCompCarrier.Default) -> enums.MimoMatrixSelection: """SCPI: CONFigure:LTE:SIGNaling<instance>:CONNection:SCC<Carrier>:SCHModel:MSELection:MIMO<Mimo> \n Snippet: value: enums.MimoMatrixSelection = driver.configure.connection.scc.schModel.mselection.mimo.get(secondaryCompCarrier = repcap.SecondaryCompCarrier.Default) \n Selects a predefined channel matrix or the user-defined channel matrix for MIMO 4x4. \n :param secondaryCompCarrier: optional repeated capability selector. Default value: CC1 (settable in the interface 'Scc') :return: selection: UDEFined | CM3Gpp | HADamard | IDENtity User-defined matrix, 3GPP channel matrix, Hadamard matrix, identity matrix""" secondaryCompCarrier_cmd_val = self._cmd_group.get_repcap_cmd_value(secondaryCompCarrier, repcap.SecondaryCompCarrier) response = self._core.io.query_str(f'CONFigure:LTE:SIGNaling<Instance>:CONNection:SCC{secondaryCompCarrier_cmd_val}:SCHModel:MSELection:MIMO44?') return Conversions.str_to_scalar_enum(response, enums.MimoMatrixSelection)