from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class OffsetCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("offset", core, parent)
[docs]
def set(self, offset: float) -> None:
"""
``[SENSe]:DETect:EVALuation:OFFSet`` \n
Snippet: ``driver.applications.k149Uwb.sense.detect.evaluation.offset.set(offset = 1.0)`` \n
Sets the offset of the beginning of the detected burst to where to start detection within SYNC section.
:param offset: numeric value
"""
param = Conversions.decimal_value_to_str(offset)
self._core.io.write(f'SENSe:DETect:EVALuation:OFFSet {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:DETect:EVALuation:OFFSet`` \n
Snippet: ``value: float = driver.applications.k149Uwb.sense.detect.evaluation.offset.get()`` \n
Sets the offset of the beginning of the detected burst to where to start detection within SYNC section.
:return: offset: numeric value
"""
response = self._core.io.query_str(f'SENSe:DETect:EVALuation:OFFSet?')
return Conversions.str_to_float(response)