from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SbitNumberCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sbitNumber", core, parent)
[docs]
def get(self, mask_test: str) -> int:
"""
``MTESt:SBITnumber`` \n
Snippet: ``value: int = driver.mtest.sbitNumber.get(mask_test = 'abc')`` \n
Returns the number of the status bit that belongs to the indicated mask test in the method
``RsRtx.status.questionable.mask.event()`` register. The status bits are assigned in the order of mask creation.
:param mask_test: String with the name of the mask test
:return: status_bt_no: Bit number, see 'STATus:QUEStionable:MASK register'.
"""
param = Conversions.value_to_quoted_str(mask_test)
response = self._core.io.query_str_with_opc(f'MTESt:SBITnumber? {param}')
return Conversions.str_to_int(response)