Source code for rsrtx.Implementations.Search.Trigger.FlxRay.Cenable

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

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

[docs] def set(self, search: str, cycle_count: enums.ConditionOperator) -> None: """ ``SEARch:TRIGger:FLXRay:CENable`` \n Snippet: ``driver.search.trigger.flxRay.cenable.set(search = 'abc', cycle_count = enums.ConditionOperator.EQUal)`` \n Sets the operator to define a cycle count or a cycle count range. :param cycle_count: OFF | ANY | EQUal | NEQual | LTHan | LETHan | GTHan | GETHan | INRange | OORange \n - OFF = ANY: The cycle count is not relevant for the search condition. - EQUal | NEQual | LTHan | LETHan | GTHan | GETHan: Equal, Not equal, Less than, Less or equal than, Greater Than, Greater or equal than. These conditions require one cycle count number to be set with SEARch:TRIGger:FLXRay:CMIN. - INRange | OORange: In range, Out of range: Set the minimum and maximum value of the range with SEARch:TRIGger:FLXRay:CMIN and SEARch:TRIGger:FLXRay:CMAX. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('cycle_count', cycle_count, DataType.Enum, enums.ConditionOperator)) self._core.io.write(f'SEARch:TRIGger:FLXRay:CENable {param}'.rstrip())
# noinspection PyTypeChecker
[docs] def get(self, search: str) -> enums.ConditionOperator: """ ``SEARch:TRIGger:FLXRay:CENable`` \n Snippet: ``value: enums.ConditionOperator = driver.search.trigger.flxRay.cenable.get(search = 'abc')`` \n Sets the operator to define a cycle count or a cycle count range. :return: cycle_count: OFF | ANY | EQUal | NEQual | LTHan | LETHan | GTHan | GETHan | INRange | OORange \n - OFF = ANY: The cycle count is not relevant for the search condition. - EQUal | NEQual | LTHan | LETHan | GTHan | GETHan: Equal, Not equal, Less than, Less or equal than, Greater Than, Greater or equal than. These conditions require one cycle count number to be set with SEARch:TRIGger:FLXRay:CMIN. - INRange | OORange: In range, Out of range: Set the minimum and maximum value of the range with SEARch:TRIGger:FLXRay:CMIN and SEARch:TRIGger:FLXRay:CMAX. """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:FLXRay:CENable? {param}') return Conversions.str_to_scalar_enum(response, enums.ConditionOperator)