Source code for RsSmw.Implementations.Source.Bb.Arbitrary.Wsegment.Sequence

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

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

[docs] def get_select(self) -> str: """ ``[SOURce<HW>]:BB:ARBitrary:WSEGment:SEQuence:SELect`` \n Snippet: ``value: str = driver.source.bb.arbitrary.wsegment.sequence.get_select()`` \n Selects the sequencing list (files with extension wvs) :return: filename: string """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ARBitrary:WSEGment:SEQuence:SELect?') return trim_str_response(response)
[docs] def set_select(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:ARBitrary:WSEGment:SEQuence:SELect`` \n Snippet: ``driver.source.bb.arbitrary.wsegment.sequence.set_select(filename = 'abc')`` \n Selects the sequencing list (files with extension wvs) :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:ARBitrary:WSEGment:SEQuence:SELect {param}')