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 SettingCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("setting", core, parent)
[docs]
def get_load(self) -> str:
"""
``[SOURce<HW>]:BB:LRWPan:SETTing:LOAD`` \n
Snippet: ``value: str = driver.source.bb.lrWpan.setting.get_load()`` \n
Loads the selected file from the default or the specified directory. Loaded are files with extension hrpuwb. Refer to
'Accessing Files in the Default or Specified Directory' for general information on file handling in the default and in a
specific directory.
:return: filename: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:SETTing:LOAD?')
return trim_str_response(response)
[docs]
def set_load(self, filename: str) -> None:
"""
``[SOURce<HW>]:BB:LRWPan:SETTing:LOAD`` \n
Snippet: ``driver.source.bb.lrWpan.setting.set_load(filename = 'abc')`` \n
Loads the selected file from the default or the specified directory. Loaded are files with extension hrpuwb. Refer to
'Accessing Files in the Default or Specified Directory' for general information on file handling in the default and in a
specific directory.
:param filename: string
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SOURce<HwInstance>:BB:LRWPan:SETTing:LOAD {param}')
[docs]
def get_store(self) -> str:
"""
``[SOURce<HW>]:BB:LRWPan:SETTing:STORe`` \n
Snippet: ``value: str = driver.source.bb.lrWpan.setting.get_store()`` \n
Saves the current settings into the selected file; the file extension (hrpuwb) 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.
:return: filename: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:SETTing:STORe?')
return trim_str_response(response)
[docs]
def set_store(self, filename: str) -> None:
"""
``[SOURce<HW>]:BB:LRWPan:SETTing:STORe`` \n
Snippet: ``driver.source.bb.lrWpan.setting.set_store(filename = 'abc')`` \n
Saves the current settings into the selected file; the file extension (hrpuwb) 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.
:param filename: string
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SOURce<HwInstance>:BB:LRWPan:SETTing:STORe {param}')