Source code for RsFsw.Implementations.Applications.IqAnalyzer.Sense.Iq.Bandwidth.Resolution

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


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

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

[docs] def set(self, resolution: float) -> None: """ ``[SENSe]:IQ:BANDwidth:RESolution`` \n Snippet: ``driver.applications.iqAnalyzer.sense.iq.bandwidth.resolution.set(resolution = 1.0)`` \n Defines the resolution bandwidth manually if method ``RsFsw.sense.iq.bandwidth.mode.set()`` is set to MAN. Defines the resolution bandwidth. The available RBW values depend on the sample rate and record length. For details see 'Frequency resolution of FFT results - RBW'. :param resolution: refer to specifications document Unit: HZ """ param = Conversions.decimal_value_to_str(resolution) self._core.io.write(f'SENSe:IQ:BANDwidth:RESolution {param}')
[docs] def get(self) -> float: """ ``[SENSe]:IQ:BANDwidth:RESolution`` \n Snippet: ``value: float = driver.applications.iqAnalyzer.sense.iq.bandwidth.resolution.get()`` \n Defines the resolution bandwidth manually if method ``RsFsw.sense.iq.bandwidth.mode.set()`` is set to MAN. Defines the resolution bandwidth. The available RBW values depend on the sample rate and record length. For details see 'Frequency resolution of FFT results - RBW'. """ response = self._core.io.query_str(f'SENSe:IQ:BANDwidth:RESolution?') return Conversions.str_to_float(response)