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 FssErrorCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("fssError", core, parent)
[docs]
def set(self, search: str, fss_error: bool) -> None:
"""
``SEARch:TRIGger:FLXRay:FSSerror`` \n
Snippet: ``driver.search.trigger.flxRay.fssError.set(search = 'abc', fss_error = False)`` \n
Searches for an error in a Frame Start Sequence(FSS) . FSS follows the Transmission Start Sequence (TSS) at the beginning
of each frame.
:param fss_error: OFF | ON
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('fss_error', fss_error, DataType.Boolean))
self._core.io.write(f'SEARch:TRIGger:FLXRay:FSSerror {param}'.rstrip())
[docs]
def get(self, search: str) -> bool:
"""
``SEARch:TRIGger:FLXRay:FSSerror`` \n
Snippet: ``value: bool = driver.search.trigger.flxRay.fssError.get(search = 'abc')`` \n
Searches for an error in a Frame Start Sequence(FSS) . FSS follows the Transmission Start Sequence (TSS) at the beginning
of each frame.
:return: fss_error: OFF | ON
"""
param = Conversions.value_to_quoted_str(search)
response = self._core.io.query_str(f'SEARch:TRIGger:FLXRay:FSSerror? {param}')
return Conversions.str_to_bool(response)