Source code for RsSmw.Implementations.Source.Efrontend.Frequency.Band.Upper

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


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

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

[docs] def get(self, band=repcap.Band.Default) -> float: """ ``[SOURce<HW>]:EFRontend:FREQuency:BAND<CH>:UPPer`` \n Snippet: ``value: float = driver.source.efrontend.frequency.band.upper.get(band = repcap.Band.Default)`` \n Queries the lower/upper limit of the corresponding frequency band. :param band: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Band') :return: fe_freq_band_up: float """ band_cmd_val = self._cmd_group.get_repcap_cmd_value(band, repcap.Band) response = self._core.io.query_str(f'SOURce<HwInstance>:EFRontend:FREQuency:BAND{band_cmd_val}:UPPer?') return Conversions.str_to_float(response)