Source code for rsrtx.Implementations.Bus.Newlist

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


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

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

[docs] def set(self, filename: str, bus=repcap.Bus.Default) -> None: """ ``BUS<*>:NEWList`` \n Snippet: ``driver.bus.newlist.set(filename = 'abc', bus = repcap.Bus.Default)`` \n Loads a label list file. :param filename: String parameter with path and file name. :param bus: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bus') """ param = Conversions.value_to_quoted_str(filename) bus_cmd_val = self._cmd_group.get_repcap_cmd_value(bus, repcap.Bus) self._core.io.write(f'BUS{bus_cmd_val}:NEWList {param}')