from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class GapCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("gap", core, parent)
[docs]
def set(self, sts_gap: float) -> None:
"""
``[SENSe]:DEMod:STS:GAP`` \n
Snippet: ``driver.applications.k149Uwb.sense.demod.sts.gap.set(sts_gap = 1.0)`` \n
Gap between payload and STS section in packet configuration 2.
:param sts_gap: numeric value
"""
param = Conversions.decimal_value_to_str(sts_gap)
self._core.io.write(f'SENSe:DEMod:STS:GAP {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:DEMod:STS:GAP`` \n
Snippet: ``value: float = driver.applications.k149Uwb.sense.demod.sts.gap.get()`` \n
Gap between payload and STS section in packet configuration 2.
:return: sts_gap: numeric value
"""
response = self._core.io.query_str(f'SENSe:DEMod:STS:GAP?')
return Conversions.str_to_float(response)