Source code for RsCMPX_NrFr1Meas.Implementations.NrSubMeas.Prach.Modulation.DsIndex

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.ArgSingleSuppressed import ArgSingleSuppressed
from ......Internal.Types import DataType


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DsIndexCls:
	"""
	| Commands in total: 2
	| Subgroups: 1
	| Direct child commands: 1
	"""

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

	@property
	def preamble(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_preamble'):
			from .Preamble import PreambleCls
			self._preamble = PreambleCls(self._core, self._cmd_group)
		return self._preamble

[docs] def fetch(self) -> int: """ ``FETCh:NRSub:MEASurement<Instance>:PRACh:MODulation:DSINdex`` \n Snippet: ``value: int = driver.nrSubMeas.prach.modulation.dsIndex.fetch()`` \n Returns the automatically detected or manually configured sequence index for single-preamble measurements. Suppressed linked return values: reliability :return: sequence_index: Sequence index """ suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_str_suppressed(f'FETCh:NRSub:MEASurement<Instance>:PRACh:MODulation:DSINdex?', suppressed) return Conversions.str_to_int(response)
def clone(self) -> 'DsIndexCls': """ 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 = DsIndexCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group