Source code for rsrtx.Implementations.Search.Trigger.Milstd.Data.Icondition

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
from ...... import enums


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

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

[docs] def set(self, search: str, dat_index_optor: enums.DataIndexOperator) -> None: """ ``SEARch:TRIGger:MILStd:DATA:ICONdition`` \n Snippet: ``driver.search.trigger.milstd.data.icondition.set(search = 'abc', dat_index_optor = enums.DataIndexOperator.ANY)`` \n Sets the operator to set a range within a series of the data words that is considered for the search. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('dat_index_optor', dat_index_optor, DataType.Enum, enums.DataIndexOperator)) self._core.io.write(f'SEARch:TRIGger:MILStd:DATA:ICONdition {param}'.rstrip())
# noinspection PyTypeChecker
[docs] def get(self, search: str) -> enums.DataIndexOperator: """ ``SEARch:TRIGger:MILStd:DATA:ICONdition`` \n Snippet: ``value: enums.DataIndexOperator = driver.search.trigger.milstd.data.icondition.get(search = 'abc')`` \n Sets the operator to set a range within a series of the data words that is considered for the search. :param search: INRange = RANGe """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:MILStd:DATA:ICONdition? {param}') return Conversions.str_to_scalar_enum(response, enums.DataIndexOperator)