from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.ArgSingleSuppressed import ArgSingleSuppressed
from .....Internal.Types import DataType
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LcheckCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("lcheck", core, parent)
# noinspection PyTypeChecker
[docs]
def fetch(self) -> enums.Result:
"""
``FETCh:NRSub:MEASurement<Instance>:TPC:PSTeps:LCHeck`` \n
Snippet: ``value: enums.Result = driver.nrSubMeas.tpc.psteps.lcheck.fetch()`` \n
Queries the overall limit check result for the TPC measurement. See also 'Limit check result'.
Suppressed linked return values: reliability
:return: limit_check: FAIL | PASS
"""
suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability')
response = self._core.io.query_str_suppressed(f'FETCh:NRSub:MEASurement<Instance>:TPC:PSTeps:LCHeck?', suppressed)
return Conversions.str_to_scalar_enum(response, enums.Result)