Source code for rsrtx.Implementations.Search.Trigger.Sent.IrfLength

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

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

[docs] def set(self, search: str, irregular_frm_len: bool) -> None: """ ``SEARch:TRIGger:SENT:IRFLength`` \n Snippet: ``driver.search.trigger.sent.irfLength.set(search = 'abc', irregular_frm_len = False)`` \n Enables the search for irregular frame length errors in transmission sequences. This error type is relevant if pause pulse mode is set to constant frame length. To initially enable the search for an error event, set method ``RsRtx.search.trigger.sent.error.set()`` to ON. :param irregular_frm_len: OFF | ON """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('irregular_frm_len', irregular_frm_len, DataType.Boolean)) self._core.io.write(f'SEARch:TRIGger:SENT:IRFLength {param}'.rstrip())
[docs] def get(self, search: str) -> bool: """ ``SEARch:TRIGger:SENT:IRFLength`` \n Snippet: ``value: bool = driver.search.trigger.sent.irfLength.get(search = 'abc')`` \n Enables the search for irregular frame length errors in transmission sequences. This error type is relevant if pause pulse mode is set to constant frame length. To initially enable the search for an error event, set method ``RsRtx.search.trigger.sent.error.set()`` to ON. :return: irregular_frm_len: OFF | ON """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:SENT:IRFLength? {param}') return Conversions.str_to_bool(response)