Source code for RsSmw.Implementations.Source.Bb.Gbas.Mset

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Utilities import trim_str_response


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

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

[docs] def get_mtype(self) -> str: """ ``[SOURce<HW>]:BB:GBAS:MSET:MTYPe`` \n Snippet: ``value: str = driver.source.bb.gbas.mset.get_mtype()`` \n Queries the used modulation. :return: mtype: string """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GBAS:MSET:MTYPe?') return trim_str_response(response)
[docs] def get_symbol_rate(self) -> float: """ ``[SOURce<HW>]:BB:GBAS:MSET:SRATe`` \n Snippet: ``value: float = driver.source.bb.gbas.mset.get_symbol_rate()`` \n Queries the used sample rate. :return: srate: float Range: 10.49E3 to 10.51E3 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GBAS:MSET:SRATe?') return Conversions.str_to_float(response)