Source code for RsSmbv.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
[docs]class DownlinkCls: """Downlink commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("downlink", core, parent)
[docs] def get_catalog(self) -> List[str]: """SCPI: [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. \n :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: """SCPI: [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. \n :return: tmod_down: 'filename' Filename as queried with one of the following commands: [:SOURcehw]:BB:NR5G:SETTing:TMODel:UL:CATalog? [:SOURcehw]:BB:NR5G:SETTing:TMODel:DL:CATalog? [:SOURcehw]:BB:NR5G:SETTing:TMODel:FILTer:CATalog """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:SETTing:TMODel:DL?') return trim_str_response(response)
[docs] def set_value(self, tmod_down: str) -> None: """SCPI: [SOURce<HW>]:BB:NR5G:SETTing:TMODel:DL \n Snippet: driver.source.bb.nr5G.setting.tmodel.downlink.set_value(tmod_down = 'abc') \n Loads a test model file with predefined settings. \n :param tmod_down: 'filename' Filename as queried with one of the following commands: [:SOURcehw]:BB:NR5G:SETTing:TMODel:UL:CATalog? [:SOURcehw]:BB:NR5G:SETTing:TMODel:DL:CATalog? [:SOURcehw]:BB:NR5G:SETTing:TMODel:FILTer:CATalog """ param = Conversions.value_to_quoted_str(tmod_down) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:SETTing:TMODel:DL {param}')