from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Types import DataType
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class IfsCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ifs", core, parent)
[docs]
def set(self, search: str, error_ifs: bool) -> None:
"""
``SEARch:TRIGger:CXPI:ERRor:IFS`` \n
Snippet: ``driver.search.trigger.cxpi.error.ifs.set(search = 'abc', error_ifs = False)`` \n
Searches for an inter-frame-space error, if method ``RsRtx.search.trigger.cxpi.typePy.set()`` is set to ERRor.
:param error_ifs: OFF | ON
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('error_ifs', error_ifs, DataType.Boolean))
self._core.io.write(f'SEARch:TRIGger:CXPI:ERRor:IFS {param}'.rstrip())
[docs]
def get(self, search: str) -> bool:
"""
``SEARch:TRIGger:CXPI:ERRor:IFS`` \n
Snippet: ``value: bool = driver.search.trigger.cxpi.error.ifs.get(search = 'abc')`` \n
Searches for an inter-frame-space error, if method ``RsRtx.search.trigger.cxpi.typePy.set()`` is set to ERRor.
:return: error_ifs: OFF | ON
"""
param = Conversions.value_to_quoted_str(search)
response = self._core.io.query_str(f'SEARch:TRIGger:CXPI:ERRor:IFS? {param}')
return Conversions.str_to_bool(response)