Source code for RsCMPX_LteMeas.Implementations.Configure.LteMeas.Prach.Modulation.Sindex

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SindexCls: """Sindex commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("sindex", core, parent)
[docs] def get_auto(self) -> bool: """SCPI: CONFigure:LTE:MEASurement<Instance>:PRACh:MODulation:SINDex:AUTO \n Snippet: value: bool = driver.configure.lteMeas.prach.modulation.sindex.get_auto() \n Enables or disables automatic detection of the sequence index. To configure the index manually for disabled automatic detection, see method RsCMPX_LteMeas.Configure.LteMeas.Prach.Modulation.Sindex.value. \n :return: seq_index_auto: No help available """ response = self._core.io.query_str('CONFigure:LTE:MEASurement<Instance>:PRACh:MODulation:SINDex:AUTO?') return Conversions.str_to_bool(response)
[docs] def set_auto(self, seq_index_auto: bool) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:PRACh:MODulation:SINDex:AUTO \n Snippet: driver.configure.lteMeas.prach.modulation.sindex.set_auto(seq_index_auto = False) \n Enables or disables automatic detection of the sequence index. To configure the index manually for disabled automatic detection, see method RsCMPX_LteMeas.Configure.LteMeas.Prach.Modulation.Sindex.value. \n :param seq_index_auto: No help available """ param = Conversions.bool_to_str(seq_index_auto) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:PRACh:MODulation:SINDex:AUTO {param}')
[docs] def get_value(self) -> int: """SCPI: CONFigure:LTE:MEASurement<Instance>:PRACh:MODulation:SINDex \n Snippet: value: int = driver.configure.lteMeas.prach.modulation.sindex.get_value() \n Specifies the sequence index, i.e. which of the 64 preamble sequences of the cell is used by the UE. This setting is only relevant if automatic detection is disabled, see method RsCMPX_LteMeas.Configure.LteMeas.Prach.Modulation.Sindex.auto. \n :return: sequence_index: No help available """ response = self._core.io.query_str('CONFigure:LTE:MEASurement<Instance>:PRACh:MODulation:SINDex?') return Conversions.str_to_int(response)
[docs] def set_value(self, sequence_index: int) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:PRACh:MODulation:SINDex \n Snippet: driver.configure.lteMeas.prach.modulation.sindex.set_value(sequence_index = 1) \n Specifies the sequence index, i.e. which of the 64 preamble sequences of the cell is used by the UE. This setting is only relevant if automatic detection is disabled, see method RsCMPX_LteMeas.Configure.LteMeas.Prach.Modulation.Sindex.auto. \n :param sequence_index: No help available """ param = Conversions.decimal_value_to_str(sequence_index) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:PRACh:MODulation:SINDex {param}')