Source code for rsmxo.Implementations.Mtest.Result.Count.Pwaveforms

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


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

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

[docs] def get(self, maskTest=repcap.MaskTest.Default) -> int: """ ``MTESt<*>:RESult:COUNt:PWAVeforms`` \n Snippet: ``value: int = driver.mtest.result.count.pwaveforms.get(maskTest = repcap.MaskTest.Default)`` \n Returns the number of acquisitions that passed the test successfully. :param maskTest: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Mtest') :return: acqs_passed: 0 to 10000000000000 """ maskTest_cmd_val = self._cmd_group.get_repcap_cmd_value(maskTest, repcap.MaskTest) response = self._core.io.query_str(f'MTESt{maskTest_cmd_val}:RESult:COUNt:PWAVeforms?') return Conversions.str_to_int(response)