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

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

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

[docs] def set(self, search: str, ploadlgth_min: int) -> None: """ ``SEARch:TRIGger:FLXRay:PMIN`` \n Snippet: ``driver.search.trigger.flxRay.pmin.set(search = 'abc', ploadlgth_min = 1)`` \n Specifies a payload length - the number of words in the payload segment - or sets the start value of an payload length range. Information is transmitted in 2-byte words, so the number of data bytes in the payload segment is twice the payload length. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('ploadlgth_min', ploadlgth_min, DataType.Integer)) self._core.io.write(f'SEARch:TRIGger:FLXRay:PMIN {param}'.rstrip())
[docs] def get(self, search: str) -> int: """ ``SEARch:TRIGger:FLXRay:PMIN`` \n Snippet: ``value: int = driver.search.trigger.flxRay.pmin.get(search = 'abc')`` \n Specifies a payload length - the number of words in the payload segment - or sets the start value of an payload length range. Information is transmitted in 2-byte words, so the number of data bytes in the payload segment is twice the payload length. :param search: 0 to 127 """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:FLXRay:PMIN? {param}') return Conversions.str_to_int(response)