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
class SindexCls:
	"""
	| Commands in total: 2
	| Subgroups: 0
	| Direct child commands: 2
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("sindex", core, parent)

[docs] def get_auto(self) -> bool: """ ``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()`` . :return: seq_index_auto: OFF | ON """ 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: """ ``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()`` . :param seq_index_auto: OFF | ON """ 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: """ ``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()`` . :return: sequence_index: numeric """ 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: """ ``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()`` . :param sequence_index: numeric """ param = Conversions.decimal_value_to_str(sequence_index) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:PRACh:SINDex {param}')