from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TraceCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("trace", core, parent)
[docs]
def set(self, result: enums.ReferenceMode) -> None:
"""
``CONFigure:PHASe:TRACe`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.phase.trace.set(result = enums.ReferenceMode.ABSolute)`` \n
Changes the phase trace state for DSP.
:param result: ABSolute | RELative ABSolute Refers to the total channel response phase of a signal measured from a fixed reference point. RELative Refers to the difference in channel response phase between two signals or channels.
"""
param = Conversions.enum_scalar_to_str(result, enums.ReferenceMode)
self._core.io.write(f'CONFigure:PHASe:TRACe {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.ReferenceMode:
"""
``CONFigure:PHASe:TRACe`` \n
Snippet: ``value: enums.ReferenceMode = driver.applications.k18AmplifierEt.configure.phase.trace.get()`` \n
Changes the phase trace state for DSP.
:return: result: ABSolute | RELative ABSolute Refers to the total channel response phase of a signal measured from a fixed reference point. RELative Refers to the difference in channel response phase between two signals or channels.
"""
response = self._core.io.query_str(f'CONFigure:PHASe:TRACe?')
return Conversions.str_to_scalar_enum(response, enums.ReferenceMode)