Source code for RsSmw.Implementations.Source.Bb.LrWpan.Huwb.Sts.Data

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 DataCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def get_dselection(self) -> str: """ ``[SOURce<HW>]:BB:[LRWPan]:HUWB:STS:DATA:DSELection`` \n Snippet: ``value: str = driver.source.bb.lrWpan.huwb.sts.data.get_dselection()`` \n Selects an existing data list file from the default directory or from a specific directory. The data list is only used, if DLS is activated. :return: sts_dlist: string """ response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:HUWB:STS:DATA:DSELection?') return trim_str_response(response)
[docs] def set_dselection(self, sts_dlist: str) -> None: """ ``[SOURce<HW>]:BB:[LRWPan]:HUWB:STS:DATA:DSELection`` \n Snippet: ``driver.source.bb.lrWpan.huwb.sts.data.set_dselection(sts_dlist = 'abc')`` \n Selects an existing data list file from the default directory or from a specific directory. The data list is only used, if DLS is activated. :param sts_dlist: string """ param = Conversions.value_to_quoted_str(sts_dlist) self._core.io.write(f'SOURce<HwInstance>:BB:LRWPan:HUWB:STS:DATA:DSELection {param}')