Source code for rsrtx.Implementations.AdvJitter.Result.PamJitter.Result.Measurement.WfmCount

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


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

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

[docs] def get(self, advJitter=repcap.AdvJitter.Default, measurement=repcap.Measurement.Default) -> int: """ ``ADVJitter<*>:RESult:PAMJitter:RESult<*>:MEASurement<*>:WFMCount`` \n Snippet: ``value: int = driver.advJitter.result.pamJitter.result.measurement.wfmCount.get(advJitter = repcap.AdvJitter.Default, measurement = repcap.Measurement.Default)`` \n Return the statistic results of the specified jitter measurement for PAM-N signals. The command affects the content of export files as well as data retrieved with: \n - MAXPeakpeak: absolute maximum value of the component. - MAXStddev: standard deviation of the maximum value. - MINPeakpeak: absolute minimum value of the component. - MINStddev: standard deviation of the minimum value. - PEAKpeak: peak to peak value of the long-term measurement results. - WFMCount: number of waveforms (acquisitions) the measurement is based on. - STDDev: standard deviation of the long-term measurement results. :param advJitter: optional repeated capability selector. Default value: Nr1 (settable in the interface 'AdvJitter') :param measurement: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Measurement') :return: waveforms_count: Numeric result """ advJitter_cmd_val = self._cmd_group.get_repcap_cmd_value(advJitter, repcap.AdvJitter) measurement_cmd_val = self._cmd_group.get_repcap_cmd_value(measurement, repcap.Measurement) response = self._core.io.query_str(f'ADVJitter{advJitter_cmd_val}:RESult:PAMJitter:RESult1:MEASurement{measurement_cmd_val}:WFMCount?') return Conversions.str_to_int(response)