from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RfPhaseCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("rfPhase", core, parent)
# noinspection PyTypeChecker
[docs]
def get_mode(self) -> enums.PcmOdeAll:
"""
``[SOURce<HW>]:BB:NR5G:NODE:RFPHase:MODE`` \n
Snippet: ``value: enums.PcmOdeAll = driver.source.bb.nr5G.node.rfPhase.get_mode()`` \n
Enables the frequency-related phase compensation after each symbol, as specified in . It uses the parameter 'Frequency in
GHz' to set the carrier frequency to be compensated.
:return: rf_phase_comp: 0 | OFF | MANual | 1| AUTO 0 | OFF Disables the frequency-related phase compensation. MANual Enables the 'Frequency in GHz' field for manual input of the carrier frequency value to be compensated. 1 | AUTO Sets automatically the carrier 'Frequency in GHz' value to be compensated.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:NODE:RFPHase:MODE?')
return Conversions.str_to_scalar_enum(response, enums.PcmOdeAll)