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

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


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

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

[docs] def set(self, allow_diff: bool, lane=repcap.Lane.Default) -> None: """ ``LANE<*>:EMBedding:DIFFerential`` \n Snippet: ``driver.lane.embedding.differential.set(allow_diff = False, lane = repcap.Lane.Default)`` \n Enables differential mode for math or reference curve sources. :param allow_diff: OFF | ON :param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane') """ param = Conversions.bool_to_str(allow_diff) 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:DIFFerential {param}')
[docs] def get(self, lane=repcap.Lane.Default) -> bool: """ ``LANE<*>:EMBedding:DIFFerential`` \n Snippet: ``value: bool = driver.lane.embedding.differential.get(lane = repcap.Lane.Default)`` \n Enables differential mode for math or reference curve sources. :param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane') :return: allow_diff: 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:DIFFerential?') return Conversions.str_to_bool(response)