from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SquelchCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("squelch", core, parent)
[docs]
def set(self, squelch_level: float) -> None:
"""
``CONFigure:FDOMain:SQUelch`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.fdomain.squelch.set(squelch_level = 1.0)`` \n
For group delay results, defines a level threshold below which the group delay is set to 0. If the group delay does not
exceed the threshold, it is ignored altogether.
:param squelch_level: Range: -200 to +200, Unit: dBm
"""
param = Conversions.decimal_value_to_str(squelch_level)
self._core.io.write(f'CONFigure:FDOMain:SQUelch {param}')
[docs]
def get(self) -> float:
"""
``CONFigure:FDOMain:SQUelch`` \n
Snippet: ``value: float = driver.applications.k18AmplifierEt.configure.fdomain.squelch.get()`` \n
For group delay results, defines a level threshold below which the group delay is set to 0. If the group delay does not
exceed the threshold, it is ignored altogether.
:return: squelch_level: Range: -200 to +200, Unit: dBm
"""
response = self._core.io.query_str(f'CONFigure:FDOMain:SQUelch?')
return Conversions.str_to_float(response)