Source code for rsrtx.Implementations.Search.Trigger.Dphy.Didx.Min

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

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

[docs] def set(self, search: str, data_index_min: int) -> None: """ ``SEARch:TRIGger:DPHY:DIDX:MIN`` \n Snippet: ``driver.search.trigger.dphy.didx.min.set(search = 'abc', data_index_min = 1)`` \n Specifies a data index minimum, or sets the start value of a range. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('data_index_min', data_index_min, DataType.Integer)) self._core.io.write(f'SEARch:TRIGger:DPHY:DIDX:MIN {param}'.rstrip())
[docs] def get(self, search: str) -> int: """ ``SEARch:TRIGger:DPHY:DIDX:MIN`` \n Snippet: ``value: int = driver.search.trigger.dphy.didx.min.get(search = 'abc')`` \n Specifies a data index minimum, or sets the start value of a range. :param search: 0 to 65.535E+3 """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:DPHY:DIDX:MIN? {param}') return Conversions.str_to_int(response)