from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ObasebandCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("obaseband", core, parent)
[docs]
def get_delay(self) -> float:
"""
``[SOURce<HW>]:BB:GNSS:TRIGger:OBASeband:DELay`` \n
Snippet: ``value: float = driver.source.bb.gnss.trigger.obaseband.get_delay()`` \n
Specifies the trigger delay for triggering by the signal from the second path.
:return: delay: float Range: 0 to 23.324365344
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:TRIGger:OBASeband:DELay?')
return Conversions.str_to_float(response)
[docs]
def set_delay(self, delay: float) -> None:
"""
``[SOURce<HW>]:BB:GNSS:TRIGger:OBASeband:DELay`` \n
Snippet: ``driver.source.bb.gnss.trigger.obaseband.set_delay(delay = 1.0)`` \n
Specifies the trigger delay for triggering by the signal from the second path.
:param delay: float Range: 0 to 23.324365344
"""
param = Conversions.decimal_value_to_str(delay)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:TRIGger:OBASeband:DELay {param}')
[docs]
def get_inhibit(self) -> float:
"""
``[SOURce<HW>]:BB:GNSS:TRIGger:OBASeband:INHibit`` \n
Snippet: ``value: float = driver.source.bb.gnss.trigger.obaseband.get_inhibit()`` \n
For triggering via the other path, specifies the number of samples by which a restart is inhibited.
:return: inhibit: float Range: 0 to 0.728886406
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:TRIGger:OBASeband:INHibit?')
return Conversions.str_to_float(response)
[docs]
def set_inhibit(self, inhibit: float) -> None:
"""
``[SOURce<HW>]:BB:GNSS:TRIGger:OBASeband:INHibit`` \n
Snippet: ``driver.source.bb.gnss.trigger.obaseband.set_inhibit(inhibit = 1.0)`` \n
For triggering via the other path, specifies the number of samples by which a restart is inhibited.
:param inhibit: float Range: 0 to 0.728886406
"""
param = Conversions.decimal_value_to_str(inhibit)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:TRIGger:OBASeband:INHibit {param}')