[docs]defget_am_first(self)->bool:"""SCPI: [SOURce<HW>]:IQ:DPD:AMFirst \n Snippet: value: bool = driver.source.iq.dpd.get_am_first() \n Sets that the AM/AM predistortion is applied before the AM/PM. \n :return: am_am_first_state: 1| ON| 0| OFF """response=self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:AMFirst?')returnConversions.str_to_bool(response)
[docs]defset_am_first(self,am_am_first_state:bool)->None:"""SCPI: [SOURce<HW>]:IQ:DPD:AMFirst \n Snippet: driver.source.iq.dpd.set_am_first(am_am_first_state = False) \n Sets that the AM/AM predistortion is applied before the AM/PM. \n :param am_am_first_state: 1| ON| 0| OFF """param=Conversions.bool_to_str(am_am_first_state)self._core.io.write(f'SOURce<HwInstance>:IQ:DPD:AMFirst {param}')
# noinspection PyTypeChecker
[docs]defget_lreference(self)->enums.DpdPowRef:"""SCPI: [SOURce<HW>]:IQ:DPD:LREFerence \n Snippet: value: enums.DpdPowRef = driver.source.iq.dpd.get_lreference() \n Sets whether a dynamic (BDPD|ADPD) or a static (SDPS) adaptation of the range the selected DPD is applied on. \n :return: level_reference: BDPD| ADPD| SDPD """response=self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:LREFerence?')returnConversions.str_to_scalar_enum(response,enums.DpdPowRef)
[docs]defset_lreference(self,level_reference:enums.DpdPowRef)->None:"""SCPI: [SOURce<HW>]:IQ:DPD:LREFerence \n Snippet: driver.source.iq.dpd.set_lreference(level_reference = enums.DpdPowRef.ADPD) \n Sets whether a dynamic (BDPD|ADPD) or a static (SDPS) adaptation of the range the selected DPD is applied on. \n :param level_reference: BDPD| ADPD| SDPD """param=Conversions.enum_scalar_to_str(level_reference,enums.DpdPowRef)self._core.io.write(f'SOURce<HwInstance>:IQ:DPD:LREFerence {param}')
[docs]defpreset(self)->None:"""SCPI: [SOURce<HW>]:IQ:DPD:PRESet \n Snippet: driver.source.iq.dpd.preset() \n Sets the default DPD settings (*RST values specified for the commands) . Not affected is the state set with the command [:SOURce<hw>]:IQ:DPD:STATe. \n """self._core.io.write(f'SOURce<HwInstance>:IQ:DPD:PRESet')
[docs]defpreset_with_opc(self,opc_timeout_ms:int=-1)->None:"""SCPI: [SOURce<HW>]:IQ:DPD:PRESet \n Snippet: driver.source.iq.dpd.preset_with_opc() \n Sets the default DPD settings (*RST values specified for the commands) . Not affected is the state set with the command [:SOURce<hw>]:IQ:DPD:STATe. \n Same as preset, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value. \n :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call."""self._core.io.write_with_opc(f'SOURce<HwInstance>:IQ:DPD:PRESet',opc_timeout_ms)
# noinspection PyTypeChecker
[docs]defget_scale(self)->enums.IqOutEnvScale:"""SCPI: [SOURce<HW>]:IQ:DPD:SCALe \n Snippet: value: enums.IqOutEnvScale = driver.source.iq.dpd.get_scale() \n Determines the units used on the x and y-axis. \n :return: scale: POWer| VOLTage """response=self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:SCALe?')returnConversions.str_to_scalar_enum(response,enums.IqOutEnvScale)
[docs]defset_scale(self,scale:enums.IqOutEnvScale)->None:"""SCPI: [SOURce<HW>]:IQ:DPD:SCALe \n Snippet: driver.source.iq.dpd.set_scale(scale = enums.IqOutEnvScale.POWer) \n Determines the units used on the x and y-axis. \n :param scale: POWer| VOLTage """param=Conversions.enum_scalar_to_str(scale,enums.IqOutEnvScale)self._core.io.write(f'SOURce<HwInstance>:IQ:DPD:SCALe {param}')
[docs]defget_state(self)->bool:"""SCPI: [SOURce<HW>]:IQ:DPD:STATe \n Snippet: value: bool = driver.source.iq.dpd.get_state() \n Enabels/disables the generation of digitally pre-distorted signals. \n :return: state: 1| ON| 0| OFF """response=self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:STATe?')returnConversions.str_to_bool(response)
[docs]defset_state(self,state:bool)->None:"""SCPI: [SOURce<HW>]:IQ:DPD:STATe \n Snippet: driver.source.iq.dpd.set_state(state = False) \n Enabels/disables the generation of digitally pre-distorted signals. \n :param state: 1| ON| 0| OFF """param=Conversions.bool_to_str(state)self._core.io.write(f'SOURce<HwInstance>:IQ:DPD:STATe {param}')
defclone(self)->'DpdCls':"""Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group"""new_group=DpdCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group