Source code for rsrtx.Implementations.Lane.Vertical.Couple

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


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

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

[docs] def set(self, vert_cpl: bool, lane=repcap.Lane.Default) -> None: """ ``LANE<*>:VERTical:COUPle`` \n Snippet: ``driver.lane.vertical.couple.set(vert_cpl = False, lane = repcap.Lane.Default)`` \n Determines how the vertical settings are defined. If enabled, the vertical settings are coupled to the settings of the respective source. If disabled, the vertical settings for embedding and equalization are set in this dialog. :param vert_cpl: OFF | ON :param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane') """ param = Conversions.bool_to_str(vert_cpl) lane_cmd_val = self._cmd_group.get_repcap_cmd_value(lane, repcap.Lane) self._core.io.write_with_opc(f'LANE{lane_cmd_val}:VERTical:COUPle {param}')
[docs] def get(self, lane=repcap.Lane.Default) -> bool: """ ``LANE<*>:VERTical:COUPle`` \n Snippet: ``value: bool = driver.lane.vertical.couple.get(lane = repcap.Lane.Default)`` \n Determines how the vertical settings are defined. If enabled, the vertical settings are coupled to the settings of the respective source. If disabled, the vertical settings for embedding and equalization are set in this dialog. :param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane') :return: vert_cpl: 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}:VERTical:COUPle?') return Conversions.str_to_bool(response)