Source code for rsrtx.Implementations.Search.Trigger.Ebtb.Syme

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Types import DataType
from .....Internal.Utilities import trim_str_response
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle


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

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

[docs] def set(self, search: str, regular_expr_string: str) -> None: """ ``SEARch:TRIGger:EBTB:SYME`` \n Snippet: ``driver.search.trigger.ebtb.syme.set(search = 'abc', regular_expr_string = 'abc')`` \n Selects the format of the symbol to be searched for, if method ``RsRtx.search.trigger.ebtb.stype.set()`` is set to EXPRession. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('regular_expr_string', regular_expr_string, DataType.String)) self._core.io.write(f'SEARch:TRIGger:EBTB:SYME {param}'.rstrip())
[docs] def get(self, search: str) -> str: """ ``SEARch:TRIGger:EBTB:SYME`` \n Snippet: ``value: str = driver.search.trigger.ebtb.syme.get(search = 'abc')`` \n Selects the format of the symbol to be searched for, if method ``RsRtx.search.trigger.ebtb.stype.set()`` is set to EXPRession. """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:EBTB:SYME? {param}') return trim_str_response(response)