Source code for rsrtx.Implementations.Lane.Equalization.Training

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TrainingCls:
	"""
	| Commands in total: 18
	| Subgroups: 8
	| Direct child commands: 1
	"""

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

	@property
	def mode(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_mode'):
			from .Mode import ModeCls
			self._mode = ModeCls(self._core, self._cmd_group)
		return self._mode

	@property
	def refWaveform(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_refWaveform'):
			from .RefWaveform import RefWaveformCls
			self._refWaveform = RefWaveformCls(self._core, self._cmd_group)
		return self._refWaveform

	@property
	def fselection(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_fselection'):
			from .Fselection import FselectionCls
			self._fselection = FselectionCls(self._core, self._cmd_group)
		return self._fselection

	@property
	def norGain(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_norGain'):
			from .NorGain import NorGainCls
			self._norGain = NorGainCls(self._core, self._cmd_group)
		return self._norGain

	@property
	def apply(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_apply'):
			from .Apply import ApplyCls
			self._apply = ApplyCls(self._core, self._cmd_group)
		return self._apply

	@property
	def error(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_error'):
			from .Error import ErrorCls
			self._error = ErrorCls(self._core, self._cmd_group)
		return self._error

	@property
	def ffe(self):
		"""
		| Commands in total: 4
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_ffe'):
			from .Ffe import FfeCls
			self._ffe = FfeCls(self._core, self._cmd_group)
		return self._ffe

	@property
	def dfe(self):
		"""
		| Commands in total: 7
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_dfe'):
			from .Dfe import DfeCls
			self._dfe = DfeCls(self._core, self._cmd_group)
		return self._dfe

[docs] def start(self, lane=repcap.Lane.Default, opc_timeout_ms: int = -1) -> None: """ ``LANE<*>:EQUalization:TRAining:STARt`` \n Snippet: ``driver.lane.equalization.training.start(lane = repcap.Lane.Default)`` \n Starts the filter training. :param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ lane_cmd_val = self._cmd_group.get_repcap_cmd_value(lane, repcap.Lane) self._core.io.write_with_opc(f'LANE{lane_cmd_val}:EQUalization:TRAining:STARt', opc_timeout_ms)
def clone(self) -> 'TrainingCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = TrainingCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group