Source code for RsSmw.Implementations.Source.Bb.Nr5G.Fmode

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 FmodeCls: """Fmode commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("fmode", core, parent)
[docs] def get_usr_file(self) -> str: """SCPI: [SOURce<HW>]:BB:NR5G:FMODe:USRFile \n Snippet: value: str = driver.source.bb.nr5G.fmode.get_usr_file() \n Loads the file from the default or the specified directory. Loaded are files with extension *.vaf or *.dat. Refer to 'Accessing Files in the Default or Specified Directory' for general information on file handling in the default and in a specific directory. \n :return: filter_file_name: string Complete file path incl. filename and extension """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:FMODe:USRFile?') return trim_str_response(response)
[docs] def set_usr_file(self, filter_file_name: str) -> None: """SCPI: [SOURce<HW>]:BB:NR5G:FMODe:USRFile \n Snippet: driver.source.bb.nr5G.fmode.set_usr_file(filter_file_name = 'abc') \n Loads the file from the default or the specified directory. Loaded are files with extension *.vaf or *.dat. Refer to 'Accessing Files in the Default or Specified Directory' for general information on file handling in the default and in a specific directory. \n :param filter_file_name: string Complete file path incl. filename and extension """ param = Conversions.value_to_quoted_str(filter_file_name) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:FMODe:USRFile {param}')