Source code for rsrtx.Implementations.Mtest.Result.Count.Remaining

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


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

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

[docs] def get(self, mask_test: str) -> float: """ ``MTESt:RESult:COUNt:REMaining`` \n Snippet: ``value: float = driver.mtest.result.count.remaining.get(mask_test = 'abc')`` \n Remaining acquisitions until Average count / Nx Single count is reached. The value is useful if you test a specified number of acquisitions with action Stop acquisition on violation, or if the acquisition has been stopped manually. :return: acqs_remaining: 0 to 100E+24 """ param = Conversions.value_to_quoted_str(mask_test) response = self._core.io.query_str_with_opc(f'MTESt:RESult:COUNt:REMaining? {param}') return Conversions.str_to_float(response)