Source code for RsSmcv.Implementations.Source.Bb.Radio.Am.Setting

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 SettingCls: """Setting commands group definition. 4 total commands, 0 Subgroups, 4 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("setting", core, parent)
[docs] def get_catalog(self) -> List[str]: """SCPI: [SOURce<HW>]:BB:RADio:AM:SETTing:CATalog \n Snippet: value: List[str] = driver.source.bb.radio.am.setting.get_catalog() \n Queries the files with settings in the default directory. Listed are files with the file extension *.am/fm/rds. 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: tx_audio_bc_am_cat_name: filename1,filename2,... Returns a string of filenames separated by commas. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:RADio:AM:SETTing:CATalog?') return Conversions.str_to_str_list(response)
[docs] def delete(self, am_del: str) -> None: """SCPI: [SOURce<HW>]:BB:RADio:AM:SETTing:DELete \n Snippet: driver.source.bb.radio.am.setting.delete(am_del = 'abc') \n Deletes the selected file from the default or the specified directory. Deleted are files with extension *.am/fm/rds. 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 am_del: 'filename' Filename or complete file path; file extension can be omitted """ param = Conversions.value_to_quoted_str(am_del) self._core.io.write(f'SOURce<HwInstance>:BB:RADio:AM:SETTing:DELete {param}')
[docs] def get_load(self) -> str: """SCPI: [SOURce<HW>]:BB:RADio:AM:SETTing:LOAD \n Snippet: value: str = driver.source.bb.radio.am.setting.get_load() \n Loads the selected file from the default or the specified directory. Loaded are files with extension *.am/fm/rds. 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: am_rcl: 'filename' Filename or complete file path; file extension can be omitted """ response = self._core.io.query_str('SOURce<HwInstance>:BB:RADio:AM:SETTing:LOAD?') return trim_str_response(response)
[docs] def set_load(self, am_rcl: str) -> None: """SCPI: [SOURce<HW>]:BB:RADio:AM:SETTing:LOAD \n Snippet: driver.source.bb.radio.am.setting.set_load(am_rcl = 'abc') \n Loads the selected file from the default or the specified directory. Loaded are files with extension *.am/fm/rds. 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 am_rcl: 'filename' Filename or complete file path; file extension can be omitted """ param = Conversions.value_to_quoted_str(am_rcl) self._core.io.write(f'SOURce<HwInstance>:BB:RADio:AM:SETTing:LOAD {param}')
[docs] def get_store(self) -> str: """SCPI: [SOURce<HW>]:BB:RADio:AM:SETTing:STORe \n Snippet: value: str = driver.source.bb.radio.am.setting.get_store() \n Saves the current settings into the selected file; the file extension (*.am/fm/rds) is assigned automatically. 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: am_sav: 'filename' Filename or complete file path """ response = self._core.io.query_str('SOURce<HwInstance>:BB:RADio:AM:SETTing:STORe?') return trim_str_response(response)
[docs] def set_store(self, am_sav: str) -> None: """SCPI: [SOURce<HW>]:BB:RADio:AM:SETTing:STORe \n Snippet: driver.source.bb.radio.am.setting.set_store(am_sav = 'abc') \n Saves the current settings into the selected file; the file extension (*.am/fm/rds) is assigned automatically. 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 am_sav: 'filename' Filename or complete file path """ param = Conversions.value_to_quoted_str(am_sav) self._core.io.write(f'SOURce<HwInstance>:BB:RADio:AM:SETTing:STORe {param}')