Source code for rsmxo.Implementations.Calculate.Spectrum.Frequency.Bandwidth.Resolution.Adjusted

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


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

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

[docs] def get(self, spectrum=repcap.Spectrum.Default) -> float: """ ``CALCulate:SPECtrum<*>:FREQuency:BANDwidth[:RESolution]:ADJusted`` \n Snippet: ``value: float = driver.calculate.spectrum.frequency.bandwidth.resolution.adjusted.get(spectrum = repcap.Spectrum.Default)`` \n Queries the effective resolution bandwidth. :param spectrum: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Spectrum') :return: adj_res_bw: 0 to 200E+9 """ spectrum_cmd_val = self._cmd_group.get_repcap_cmd_value(spectrum, repcap.Spectrum) response = self._core.io.query_str(f'CALCulate:SPECtrum{spectrum_cmd_val}:FREQuency:BANDwidth:RESolution:ADJusted?') return Conversions.str_to_float(response)