Source code for rsrtx.Implementations.Search.Trigger.Ethernet.Frame.Tmax

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

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

[docs] def set(self, search: str, type_patt_max: int) -> None: """ ``SEARch:TRIGger:ETHernet:FRAMe:TMAX`` \n Snippet: ``driver.search.trigger.ethernet.frame.tmax.set(search = 'abc', type_patt_max = 1)`` \n Sets the end value of a range of frame lengths/types, if method ``RsRtx.search.trigger.ethernet.frame.tcondition.set()`` is set to INRange or OORange. :param search: String parameter :param type_patt_max: Numeric or string pattern, see 'Bit pattern parameter'. The string parameter accepts the bit value X (don't care) . """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('type_patt_max', type_patt_max, DataType.Integer)) self._core.io.write(f'SEARch:TRIGger:ETHernet:FRAMe:TMAX {param}'.rstrip())
[docs] def get(self, search: str) -> int: """ ``SEARch:TRIGger:ETHernet:FRAMe:TMAX`` \n Snippet: ``value: int = driver.search.trigger.ethernet.frame.tmax.get(search = 'abc')`` \n Sets the end value of a range of frame lengths/types, if method ``RsRtx.search.trigger.ethernet.frame.tcondition.set()`` is set to INRange or OORange. :param search: String parameter :return: type_patt_max: Numeric or string pattern, see 'Bit pattern parameter'. The string parameter accepts the bit value X (don't care) . """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:ETHernet:FRAMe:TMAX? {param}') return Conversions.str_to_int(response)