Source code for rsrtx.Implementations.Channel.Efrontend.Frequency.Band.ListPy

from typing import List

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


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

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

[docs] def get(self, band_list: List[str], channel=repcap.Channel.Default, freqBand=repcap.FreqBand.Default) -> List[str]: """ ``CHANnel<*>:EFRontend:FREQuency:BAND<*>:LIST`` \n Snippet: ``value: List[str] = driver.channel.efrontend.frequency.band.listPy.get(band_list = ['abc1', 'abc2', 'abc3'], channel = repcap.Channel.Default, freqBand = repcap.FreqBand.Default)`` \n Queries the frequency range that is supported by the selected frontend frequency band. :param band_list: String with start and stop frequency of the selected band. :param channel: optional repeated capability selector. Default value: Ch1 (settable in the interface 'Channel') :param freqBand: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Band') :return: band_list: String with start and stop frequency of the selected band. """ param = Conversions.list_to_csv_quoted_str(band_list) channel_cmd_val = self._cmd_group.get_repcap_cmd_value(channel, repcap.Channel) freqBand_cmd_val = self._cmd_group.get_repcap_cmd_value(freqBand, repcap.FreqBand) response = self._core.io.query_str_with_opc(f'CHANnel{channel_cmd_val}:EFRontend:FREQuency:BAND{freqBand_cmd_val}:LIST? {param}') return Conversions.str_to_str_list(response)