Source code for rsrtx.Implementations.Search.Result.Ebtb.Symbol.Stop

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


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

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

[docs] def get(self, search: str, ebtbSymbol=repcap.EbtbSymbol.Default) -> float: """ ``SEARch:RESult:EBTB:SYMBol<*>:STOP`` \n Snippet: ``value: float = driver.search.result.ebtb.symbol.stop.get(search = 'abc', ebtbSymbol = repcap.EbtbSymbol.Default)`` \n Returns the stop time of the specified symbol within the search result. :param ebtbSymbol: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Symbol') :return: stop: -100E+24 to 100E+24 """ param = Conversions.value_to_quoted_str(search) ebtbSymbol_cmd_val = self._cmd_group.get_repcap_cmd_value(ebtbSymbol, repcap.EbtbSymbol) response = self._core.io.query_str(f'SEARch:RESult:EBTB:SYMBol{ebtbSymbol_cmd_val}:STOP? {param}') return Conversions.str_to_float(response)