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
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DpoperatorCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("dpoperator", core, parent)
[docs]
def set(self, search: str, dat_posi_optor: enums.DataIndexOperator) -> None:
"""
``SEARch:TRIGger:FLXRay:DPOPerator`` \n
Snippet: ``driver.search.trigger.flxRay.dpoperator.set(search = 'abc', dat_posi_optor = enums.DataIndexOperator.ANY)`` \n
Sets the operator for the data position. You can defined an exact position, or a position range.
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('dat_posi_optor', dat_posi_optor, DataType.Enum, enums.DataIndexOperator))
self._core.io.write(f'SEARch:TRIGger:FLXRay:DPOPerator {param}'.rstrip())
# noinspection PyTypeChecker
[docs]
def get(self, search: str) -> enums.DataIndexOperator:
"""
``SEARch:TRIGger:FLXRay:DPOPerator`` \n
Snippet: ``value: enums.DataIndexOperator = driver.search.trigger.flxRay.dpoperator.get(search = 'abc')`` \n
Sets the operator for the data position. You can defined an exact position, or a position range.
:param search: ANY | OFF | EQUal | GETHan | INRange | RANGe \n
- OFF = ANY: The data position is not relevant for the search condition.
- EQUal | GETHan: Equal, Greater or equal than. These conditions require one data position to be set with SEARch:TRIGger:FLXRay:DPOSition
- INRange = RANGe: In range: Set the minimum and maximum value of the range with SEARch:TRIGger:FLXRay:DPOSition and SEARch:TRIGger:FLXRay:DPTO.
"""
param = Conversions.value_to_quoted_str(search)
response = self._core.io.query_str(f'SEARch:TRIGger:FLXRay:DPOPerator? {param}')
return Conversions.str_to_scalar_enum(response, enums.DataIndexOperator)