Source code for RsFsw.Implementations.Sense.Ademod.Spectrum.Span.Maximum

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


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

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

[docs] def set(self, freq_range: float) -> None: """ ``[SENSe]:ADEMod:SPECtrum:SPAN[:MAXimum]`` \n Snippet: ``driver.sense.ademod.spectrum.span.maximum.set(freq_range = 1.0)`` \n Sets the DBW to the specified value and the span (around the center frequency) of the RF data to be evaluated to its new maximum (the demodulation bandwidth) . :param freq_range: Unit: Hz """ param = Conversions.decimal_value_to_str(freq_range) self._core.io.write(f'SENSe:ADEMod:SPECtrum:SPAN:MAXimum {param}')
[docs] def get(self) -> float: """ ``[SENSe]:ADEMod:SPECtrum:SPAN[:MAXimum]`` \n Snippet: ``value: float = driver.sense.ademod.spectrum.span.maximum.get()`` \n Sets the DBW to the specified value and the span (around the center frequency) of the RF data to be evaluated to its new maximum (the demodulation bandwidth) . :return: freq_range: Unit: Hz """ response = self._core.io.query_str(f'SENSe:ADEMod:SPECtrum:SPAN:MAXimum?') return Conversions.str_to_float(response)