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

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

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

	# noinspection PyTypeChecker
[docs] def get(self, maskTest=repcap.MaskTest.Default) -> enums.Result: """ ``MTESt<*>:RESult[:RESult]`` \n Snippet: ``value: enums.Result = driver.mtest.result.result.get(maskTest = repcap.MaskTest.Default)`` \n Returns the overall test result. :param maskTest: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Mtest') :return: test_result: PASS | FAIL """ 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:RESult?') return Conversions.str_to_scalar_enum(response, enums.Result)