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 CstepCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("cstep", core, parent)
[docs]
def set(self, search: str, cycle_count_step: int) -> None:
"""
``SEARch:TRIGger:FLXRay:CSTep`` \n
Snippet: ``driver.search.trigger.flxRay.cstep.set(search = 'abc', cycle_count_step = 1)`` \n
Specifies a step to search for each n-th cycle inside the given range. This allows for a specific search if slot
multiplexing is used. The condition method ``RsRtx.search.trigger.flxRay.cenable.set()`` must be set to INRange or
OORange.
:param cycle_count_step: 1 to 63
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('cycle_count_step', cycle_count_step, DataType.Integer))
self._core.io.write(f'SEARch:TRIGger:FLXRay:CSTep {param}'.rstrip())
[docs]
def get(self, search: str) -> int:
"""
``SEARch:TRIGger:FLXRay:CSTep`` \n
Snippet: ``value: int = driver.search.trigger.flxRay.cstep.get(search = 'abc')`` \n
Specifies a step to search for each n-th cycle inside the given range. This allows for a specific search if slot
multiplexing is used. The condition method ``RsRtx.search.trigger.flxRay.cenable.set()`` must be set to INRange or
OORange.
:return: cycle_count_step: 1 to 63
"""
param = Conversions.value_to_quoted_str(search)
response = self._core.io.query_str(f'SEARch:TRIGger:FLXRay:CSTep? {param}')
return Conversions.str_to_int(response)