Source code for RsSmw.Implementations.Source.Bb.Nr5G.Setting.Tmodel.Downlink

from typing import List

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from .......Internal.Utilities import trim_str_response


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

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

[docs] def get_catalog(self) -> List[str]: """ ``[SOURce<HW>]:BB:NR5G:SETTing:TMODel:DL:CATalog`` \n Snippet: ``value: List[str] = driver.source.bb.nr5G.setting.tmodel.downlink.get_catalog()`` \n Queries the filenames of predefined files with test signals in the default directory. :return: nr_5_gcat_name_tmod_dn: filename1,filename2,... Returns a string of filenames separated by commas. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:SETTing:TMODel:DL:CATalog?') return Conversions.str_to_str_list(response)
[docs] def get_value(self) -> str: """ ``[SOURce<HW>]:BB:NR5G:SETTing:TMODel:DL`` \n Snippet: ``value: str = driver.source.bb.nr5G.setting.tmodel.downlink.get_value()`` \n Loads a test model file with predefined settings. :return: tmod_down: 'filename' Filename as queried with one of the following commands: method ``RsSmw.source.bb.nr5G.setting.tmodel.uplink.catalog()`` method ``RsSmw.source.bb.nr5G.setting.tmodel.downlink.catalog()`` method ``RsSmw.source.bb.nr5G.setting.tmodel.filterPy.catalog()`` """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:SETTing:TMODel:DL?') return trim_str_response(response)