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

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from .... import repcap


# 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, irregular_frm_len: bool, trigger=repcap.Trigger.Default) -> None: """ ``TRIGger<*>:SENT:IRFLength`` \n Snippet: ``driver.trigger.sent.irfLength.set(irregular_frm_len = False, trigger = repcap.Trigger.Default)`` \n Triggers on frame length errors in transmission sequences when pause pulse for constant frame length is set, see BUS<bb>:SENT:PPULse PPFL. An error occurs when the total length of the transmission sequence (including pause pulse) does not match the frame length setting, see method ``RsRtx.bus.sent.ppfLength.set()`` . To trigger on an error event, select the correspondig trigger type with TRIGger<t>:SENT:TYPE ERRC. :param irregular_frm_len: OFF | ON :param trigger: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trigger') """ param = Conversions.bool_to_str(irregular_frm_len) trigger_cmd_val = self._cmd_group.get_repcap_cmd_value(trigger, repcap.Trigger) self._core.io.write(f'TRIGger{trigger_cmd_val}:SENT:IRFLength {param}')
[docs] def get(self, trigger=repcap.Trigger.Default) -> bool: """ ``TRIGger<*>:SENT:IRFLength`` \n Snippet: ``value: bool = driver.trigger.sent.irfLength.get(trigger = repcap.Trigger.Default)`` \n Triggers on frame length errors in transmission sequences when pause pulse for constant frame length is set, see BUS<bb>:SENT:PPULse PPFL. An error occurs when the total length of the transmission sequence (including pause pulse) does not match the frame length setting, see method ``RsRtx.bus.sent.ppfLength.set()`` . To trigger on an error event, select the correspondig trigger type with TRIGger<t>:SENT:TYPE ERRC. :param trigger: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trigger') :return: irregular_frm_len: OFF | ON """ trigger_cmd_val = self._cmd_group.get_repcap_cmd_value(trigger, repcap.Trigger) response = self._core.io.query_str(f'TRIGger{trigger_cmd_val}:SENT:IRFLength?') return Conversions.str_to_bool(response)