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

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 SkwSlopeCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, jitter_skw_slp: enums.Edge, measurement=repcap.Measurement.Default) -> None: """ ``MEASurement<*>:JITTer:SKWSlope`` \n Snippet: ``driver.measurement.jitter.skwSlope.set(jitter_skw_slp = enums.Edge.EITHer, measurement = repcap.Measurement.Default)`` \n Sets the edge of the first waveform from which the skew delay or phase is measured: positive, negative or both. The command is available for the following measurement: 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_slp: POSitive | NEGative | EITHer :param measurement: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Measurement') """ param = Conversions.enum_scalar_to_str(jitter_skw_slp, enums.Edge) 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:SKWSlope {param}')
# noinspection PyTypeChecker
[docs] def get(self, measurement=repcap.Measurement.Default) -> enums.Edge: """ ``MEASurement<*>:JITTer:SKWSlope`` \n Snippet: ``value: enums.Edge = driver.measurement.jitter.skwSlope.get(measurement = repcap.Measurement.Default)`` \n Sets the edge of the first waveform from which the skew delay or phase is measured: positive, negative or both. The command is available for the following measurement: 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:SKWSlope?') return Conversions.str_to_scalar_enum(response, enums.Edge)