from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AskCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ask", core, parent)
[docs]
def get_depth(self) -> float:
"""
``[SOURce<HW>]:BB:DM:ASK:DEPTh`` \n
Snippet: ``value: float = driver.source.bb.dm.ask.get_depth()`` \n
Sets the ASK modulation depth for modulation type ASK.
:return: depth: float Range: 0 to 100, Unit: PCT
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:DM:ASK:DEPTh?')
return Conversions.str_to_float(response)
[docs]
def set_depth(self, depth: float) -> None:
"""
``[SOURce<HW>]:BB:DM:ASK:DEPTh`` \n
Snippet: ``driver.source.bb.dm.ask.set_depth(depth = 1.0)`` \n
Sets the ASK modulation depth for modulation type ASK.
:param depth: float Range: 0 to 100, Unit: PCT
"""
param = Conversions.decimal_value_to_str(depth)
self._core.io.write(f'SOURce<HwInstance>:BB:DM:ASK:DEPTh {param}')