Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.Prach.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:NRSub:MEASurement<Instance>:PRACh:SINDex:AUTO \n Snippet: value: bool = driver.configure.nrSubMeas.prach.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_NrFr1Meas.Configure.NrSubMeas.Prach.Sindex.value. \n :return: seq_index_auto: No help available """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:PRACh:SINDex:AUTO?') return Conversions.str_to_bool(response)
[docs] def set_auto(self, seq_index_auto: bool) -> None: """SCPI: CONFigure:NRSub:MEASurement<Instance>:PRACh:SINDex:AUTO \n Snippet: driver.configure.nrSubMeas.prach.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_NrFr1Meas.Configure.NrSubMeas.Prach.Sindex.value. \n :param seq_index_auto: No help available """ param = Conversions.bool_to_str(seq_index_auto) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:PRACh:SINDex:AUTO {param}')
[docs] def get_value(self) -> int: """SCPI: CONFigure:NRSub:MEASurement<Instance>:PRACh:SINDex \n Snippet: value: int = driver.configure.nrSubMeas.prach.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_NrFr1Meas.Configure.NrSubMeas.Prach.Sindex.auto. \n :return: sequence_index: No help available """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:PRACh:SINDex?') return Conversions.str_to_int(response)
[docs] def set_value(self, sequence_index: int) -> None: """SCPI: CONFigure:NRSub:MEASurement<Instance>:PRACh:SINDex \n Snippet: driver.configure.nrSubMeas.prach.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_NrFr1Meas.Configure.NrSubMeas.Prach.Sindex.auto. \n :param sequence_index: No help available """ param = Conversions.decimal_value_to_str(sequence_index) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:PRACh:SINDex {param}')