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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PulseErrorCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, calib_pls_err: bool, trigger=repcap.Trigger.Default) -> None: """ ``TRIGger<*>:SENT:PULSeerror`` \n Snippet: ``driver.trigger.sent.pulseError.set(calib_pls_err = False, trigger = repcap.Trigger.Default)`` \n Trigger son calibration pulse erors in transmission sequences. An error occurs when \n - the duration of the Calibration/Sync pulse (in ticks) is less than 56*(1-clock tolerance) or more than 56*(1+clock tolerance) - the Calibration/Sync pulse duration of frame (n-1) varies by more than 1.5625% from the Calibration/Sync pulse duration of frame (n) To trigger on an error event, select the correspondig trigger type with TRIGger<m>:SENT:TYPE ERRC. :param calib_pls_err: OFF | ON :param trigger: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trigger') """ param = Conversions.bool_to_str(calib_pls_err) trigger_cmd_val = self._cmd_group.get_repcap_cmd_value(trigger, repcap.Trigger) self._core.io.write(f'TRIGger{trigger_cmd_val}:SENT:PULSeerror {param}')
[docs] def get(self, trigger=repcap.Trigger.Default) -> bool: """ ``TRIGger<*>:SENT:PULSeerror`` \n Snippet: ``value: bool = driver.trigger.sent.pulseError.get(trigger = repcap.Trigger.Default)`` \n Trigger son calibration pulse erors in transmission sequences. An error occurs when \n - the duration of the Calibration/Sync pulse (in ticks) is less than 56*(1-clock tolerance) or more than 56*(1+clock tolerance) - the Calibration/Sync pulse duration of frame (n-1) varies by more than 1.5625% from the Calibration/Sync pulse duration of frame (n) To trigger on an error event, select the correspondig trigger type with TRIGger<m>:SENT:TYPE ERRC. :param trigger: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trigger') """ 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:PULSeerror?') return Conversions.str_to_bool(response)