Source code for RsFsw.Implementations.Applications.K40_PhaseNoise.Sense.Iq.Tbw

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


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

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

[docs] def set(self, bandwidth: float) -> None: """ ``[SENSe]:IQ:TBW`` \n Snippet: ``driver.applications.k40PhaseNoise.sense.iq.tbw.set(bandwidth = 1.0)`` \n Defines the maximum tracking bandwidth (sample rate) for all half decades. :param bandwidth: Range: 60 mHz to 65.28 MHz, Unit: HZ """ param = Conversions.decimal_value_to_str(bandwidth) self._core.io.write(f'SENSe:IQ:TBW {param}')
[docs] def get(self) -> float: """ ``[SENSe]:IQ:TBW`` \n Snippet: ``value: float = driver.applications.k40PhaseNoise.sense.iq.tbw.get()`` \n Defines the maximum tracking bandwidth (sample rate) for all half decades. :return: bandwidth: Range: 60 mHz to 65.28 MHz, Unit: HZ """ response = self._core.io.query_str(f'SENSe:IQ:TBW?') return Conversions.str_to_float(response)