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

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


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

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

[docs] def set(self, search: str, dx_value: int) -> None: """ ``SEARch:TRIGger:EBTB:DX`` \n Snippet: ``driver.search.trigger.ebtb.dx.set(search = 'abc', dx_value = 1)`` \n Sets the x value of the data character Dx.y to be searched for, if method ``RsRtx.search.trigger.ebtb.symType.set()`` is set to Dxy. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('dx_value', dx_value, DataType.Integer)) self._core.io.write(f'SEARch:TRIGger:EBTB:DX {param}'.rstrip())
[docs] def get(self, search: str) -> int: """ ``SEARch:TRIGger:EBTB:DX`` \n Snippet: ``value: int = driver.search.trigger.ebtb.dx.get(search = 'abc')`` \n Sets the x value of the data character Dx.y to be searched for, if method ``RsRtx.search.trigger.ebtb.symType.set()`` is set to Dxy. :param search: 0 to 31 """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:EBTB:DX? {param}') return Conversions.str_to_int(response)