Source code for rsrtx.Implementations.Measurement.Jitter.SkwRelation

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


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

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

[docs] def set(self, jitter_skw_relt: enums.MeasJitterSkewRel, measurement=repcap.Measurement.Default) -> None: """ ``MEASurement<*>:JITTer:SKWRelation`` \n Snippet: ``driver.measurement.jitter.skwRelation.set(jitter_skw_relt = enums.MeasJitterSkewRel.INVerse, measurement = repcap.Measurement.Default)`` \n Sets the edge of the second waveform relative to the first waveform. The command is available for the following measurements: skew delay and skew phase (method ``RsRtx.measurement.main.set()`` and/or method ``RsRtx.measurement.additional.set()`` are set to measurements SKWDelay | SKWPhase) . :param jitter_skw_relt: MATChing | INVerse \n - MATChing: Measures from positive to positive edge or from negative to negative edge. - INVerse: Measures from positive to negative edge or from negative to positive edge. :param measurement: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Measurement') """ param = Conversions.enum_scalar_to_str(jitter_skw_relt, enums.MeasJitterSkewRel) measurement_cmd_val = self._cmd_group.get_repcap_cmd_value(measurement, repcap.Measurement) self._core.io.write_with_opc(f'MEASurement{measurement_cmd_val}:JITTer:SKWRelation {param}')
# noinspection PyTypeChecker
[docs] def get(self, measurement=repcap.Measurement.Default) -> enums.MeasJitterSkewRel: """ ``MEASurement<*>:JITTer:SKWRelation`` \n Snippet: ``value: enums.MeasJitterSkewRel = driver.measurement.jitter.skwRelation.get(measurement = repcap.Measurement.Default)`` \n Sets the edge of the second waveform relative to the first waveform. The command is available for the following measurements: skew delay and skew phase (method ``RsRtx.measurement.main.set()`` and/or method ``RsRtx.measurement.additional.set()`` are set to measurements SKWDelay | SKWPhase) . :param measurement: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Measurement') """ measurement_cmd_val = self._cmd_group.get_repcap_cmd_value(measurement, repcap.Measurement) response = self._core.io.query_str_with_opc(f'MEASurement{measurement_cmd_val}:JITTer:SKWRelation?') return Conversions.str_to_scalar_enum(response, enums.MeasJitterSkewRel)