Source code for RsSmw.Implementations.Source.Bb.Wlnn.Setting

from typing import List

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


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

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

[docs] def get_catalog(self) -> List[str]: """ ``[SOURce<HW>]:BB:WLNN:SETTing:CATalog`` \n Snippet: ``value: List[str] = driver.source.bb.wlnn.setting.get_catalog()`` \n Reads out the files with IEEE 802.11a/b/g/n/ac settings in the default directory. The default directory is set using command method ``RsSmw.massMemory.current_directory()`` . Only files with the file extension wlann will be listed. :return: catalog: string """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLNN:SETTing:CATalog?') return Conversions.str_to_str_list(response)
[docs] def delete(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:WLNN:SETTing:DELete`` \n Snippet: ``driver.source.bb.wlnn.setting.delete(filename = 'abc')`` \n Deletes the selected file with IIEEE 802.11a/b/g/n/ac settings. The directory is set using command method ``RsSmw.massMemory.current_directory()`` . A path can also be specified, in which case the files in the specified directory are read. The file extension may be omitted. Only files with the file extension wlann are listed and can be deleted. :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:WLNN:SETTing:DELete {param}')
[docs] def load(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:WLNN:SETTing:LOAD`` \n Snippet: ``driver.source.bb.wlnn.setting.load(filename = 'abc')`` \n Loads the selected file with IEEE 802.11 WLAN settings. The directory is set using command method ``RsSmw.massMemory.current_directory()`` . A path can also be specified, in which case the files in the specified directory are read. The file extension may be omitted. Only files with the file extension wlann will be loaded. :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:WLNN:SETTing:LOAD {param}')
[docs] def set_store(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:WLNN:SETTing:STORe`` \n Snippet: ``driver.source.bb.wlnn.setting.set_store(filename = 'abc')`` \n Saves the current IEEE 802.11a/b/g/n/ac settings into the selected file. The directory is set using command method ``RsSmw.massMemory.current_directory()`` . A path can also be specified, in which case the files in the specified directory are read. Only the file name has to be entered. IEEE 802.11a/b/g/n/ac/ax settings are saved as files with file extension wlann. :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:WLNN:SETTing:STORe {param}')