from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response
from ...... import repcap
# 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(self, search: str, ebtbSymbol=repcap.EbtbSymbol.Default) -> str:
"""
``SEARch:RESult:EBTB:SYMBol<*>:DATA`` \n
Snippet: ``value: str = driver.search.result.ebtb.symbol.data.get(search = 'abc', ebtbSymbol = repcap.EbtbSymbol.Default)`` \n
Returns the data of the specified symbol.
:param ebtbSymbol: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Symbol')
"""
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}:DATA? {param}')
return trim_str_response(response)