from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CompensationCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("compensation", core, parent)
[docs]
def set(self, result: enums.ReferenceMode) -> None:
"""
``CONFigure:EQUalizer:COMPensation`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.equalizer.compensation.set(result = enums.ReferenceMode.ABSolute)`` \n
Selects the compensation mode for the digital signal processing.
:param result: ABSolute | RELative ABSolute The equalizer modifies absolute power, phase, and group delay. RELative The equalizer maintains the average absolute power, phase, and group delay of the measurement signal while effectively flattening the amplitude, phase, and group delay across different frequencies.
"""
param = Conversions.enum_scalar_to_str(result, enums.ReferenceMode)
self._core.io.write(f'CONFigure:EQUalizer:COMPensation {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.ReferenceMode:
"""
``CONFigure:EQUalizer:COMPensation`` \n
Snippet: ``value: enums.ReferenceMode = driver.applications.k18AmplifierEt.configure.equalizer.compensation.get()`` \n
Selects the compensation mode for the digital signal processing.
:return: result: ABSolute | RELative ABSolute The equalizer modifies absolute power, phase, and group delay. RELative The equalizer maintains the average absolute power, phase, and group delay of the measurement signal while effectively flattening the amplitude, phase, and group delay across different frequencies.
"""
response = self._core.io.query_str(f'CONFigure:EQUalizer:COMPensation?')
return Conversions.str_to_scalar_enum(response, enums.ReferenceMode)