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

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

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

[docs] def set(self, search: str, ploadlgth_max: int) -> None: """ ``SEARch:TRIGger:FLXRay:PMAX`` \n Snippet: ``driver.search.trigger.flxRay.pmax.set(search = 'abc', ploadlgth_max = 1)`` \n Sets the end value of a payload length range if the condition method ``RsRtx.search.trigger.flxRay.pcondition.set()`` is set to INRange or OORange. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('ploadlgth_max', ploadlgth_max, DataType.Integer)) self._core.io.write(f'SEARch:TRIGger:FLXRay:PMAX {param}'.rstrip())
[docs] def get(self, search: str) -> int: """ ``SEARch:TRIGger:FLXRay:PMAX`` \n Snippet: ``value: int = driver.search.trigger.flxRay.pmax.get(search = 'abc')`` \n Sets the end value of a payload length range if the condition method ``RsRtx.search.trigger.flxRay.pcondition.set()`` is set to INRange or OORange. :param search: 0 to 127 """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:FLXRay:PMAX? {param}') return Conversions.str_to_int(response)