Source code for RsSmw.Implementations.Source.Bb.LrWpan.Waveform
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 WaveformCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("waveform", core, parent)
[docs]
def get_create(self) -> str:
"""
``[SOURce<HW>]:BB:LRWPan:WAVeform:CREate`` \n
Snippet: ``value: str = driver.source.bb.lrWpan.waveform.get_create()`` \n
Saves the current settings as an ARB signal in a waveform file (wv) . 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:WAVeform:CREate?')
return trim_str_response(response)
[docs]
def set_create(self, filename: str) -> None:
"""
``[SOURce<HW>]:BB:LRWPan:WAVeform:CREate`` \n
Snippet: ``driver.source.bb.lrWpan.waveform.set_create(filename = 'abc')`` \n
Saves the current settings as an ARB signal in a waveform file (wv) . 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:WAVeform:CREate {param}')