Source code for RsSmw.Implementations.Source.Bb.Nr5G.Output.SeqLen

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


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

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

[docs] def get_slot(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:OUTPut:SEQLen:SLOT`` \n Snippet: ``value: int = driver.source.bb.nr5G.output.seqLen.get_slot()`` \n Defines the sequence length in terms of slots. Prerequisites for this command \n - Turn on slot-based sequence length (method ``RsSmw.source.bb.nr5G.output.sbsl.state()`` ) . :return: seq_slot_len: integer Range: 1 to 64 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:OUTPut:SEQLen:SLOT?') return Conversions.str_to_int(response)
[docs] def get_value(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:OUTPut:SEQLen`` \n Snippet: ``value: int = driver.source.bb.nr5G.output.seqLen.get_value()`` \n Sets the sequence length of the signal in number of frames. :return: seq_len: integer Range: 1 to depends on settings If real-time feedback is enabled, max = 50 frames. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:OUTPut:SEQLen?') return Conversions.str_to_int(response)