Source code for rsrtx.Implementations.Lane.Embedding.CmpDelay

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


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

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

[docs] def set(self, dly_compens: bool, lane=repcap.Lane.Default) -> None: """ ``LANE<*>:EMBedding:CMPDelay`` \n Snippet: ``driver.lane.embedding.cmpDelay.set(dly_compens = False, lane = repcap.Lane.Default)`` \n Enables the compensation for the group delay of the complete measurement setup. If enabled, the calibration time reference point is the start point of the measurement setup. If disabled, the calibration time reference point is the oscilloscope's channel input. :param dly_compens: OFF | ON :param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane') """ param = Conversions.bool_to_str(dly_compens) lane_cmd_val = self._cmd_group.get_repcap_cmd_value(lane, repcap.Lane) self._core.io.write_with_opc(f'LANE{lane_cmd_val}:EMBedding:CMPDelay {param}')
[docs] def get(self, lane=repcap.Lane.Default) -> bool: """ ``LANE<*>:EMBedding:CMPDelay`` \n Snippet: ``value: bool = driver.lane.embedding.cmpDelay.get(lane = repcap.Lane.Default)`` \n Enables the compensation for the group delay of the complete measurement setup. If enabled, the calibration time reference point is the start point of the measurement setup. If disabled, the calibration time reference point is the oscilloscope's channel input. :param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane') :return: dly_compens: OFF | ON """ lane_cmd_val = self._cmd_group.get_repcap_cmd_value(lane, repcap.Lane) response = self._core.io.query_str_with_opc(f'LANE{lane_cmd_val}:EMBedding:CMPDelay?') return Conversions.str_to_bool(response)