Source code for RsSmw.Implementations.Source.Bb.Btooth.DtTest.Table.Long.Set.Mindex

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


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

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

[docs] def get(self, channel=repcap.Channel.Default) -> float: """ ``[SOURce<HW>]:BB:BTOoth:DTTest:TABLe:LONG:SET<CH>:MINDex`` \n Snippet: ``value: float = driver.source.bb.btooth.dtTest.table.long.set.mindex.get(channel = repcap.Channel.Default)`` \n Sets the modulation index, that specifies the frequency deviation. The modulation index h is defined as: with = 'symbol rate' , set with the method ``RsSmw.source.bb.btooth.symbolRate.variation()`` = 'frequency deviation', set with the method ``RsSmw.source.bb.btooth.msettings.fdeviation()`` According to the Bluetooth standard, the modulation index is allowed to vary between 0.28 and 0.35. :param channel: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Set') :return: mindex: float Range: 0.28 to 0.55 """ channel_cmd_val = self._cmd_group.get_repcap_cmd_value(channel, repcap.Channel) response = self._core.io.query_str(f'SOURce<HwInstance>:BB:BTOoth:DTTest:TABLe:LONG:SET{channel_cmd_val}:MINDex?') return Conversions.str_to_float(response)