[docs]classRfPhaseCls:"""RfPhase commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("rfPhase",core,parent)# noinspection PyTypeChecker
[docs]defget_mode(self)->enums.PcmOdeAll:"""SCPI: [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. \n :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?')returnConversions.str_to_scalar_enum(response,enums.PcmOdeAll)
[docs]defset_mode(self,rf_phase_comp:enums.PcmOdeAll)->None:"""SCPI: [SOURce<HW>]:BB:NR5G:NODE:RFPHase:MODE \n Snippet: driver.source.bb.nr5G.node.rfPhase.set_mode(rf_phase_comp = enums.PcmOdeAll._0) \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. \n :param 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. """param=Conversions.enum_scalar_to_str(rf_phase_comp,enums.PcmOdeAll)self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:NODE:RFPHase:MODE {param}')