Python : comment convertir une valeur RMS en valeur crête-à-crête pour signaux sinusoïdaux avec UliEngineering
Vous pouvez facilement convertir une valeur RMS en valeur crête-à-crête pour un signal sinusoïdal grâce à la bibliothèque Python UliEngineering :
example.py
from UliEngineering.SignalProcessing.Utils import *
# Convertir 1V RMS en crête-à-crête
pp_value = rms_to_peak_to_peak("1V")
print(f"1V RMS = {pp_value} peak-to-peak")
# Convertir 3.3V RMS en crête-à-crête
pp_value = rms_to_peak_to_peak("3.3V")
print(f"3.3V RMS = {pp_value} peak-to-peak")Exemple de sortie
rms_to_peak_to_peak_output.txt
1V RMS = 2.828V peak-to-peak
3.3V RMS = 9.333V peak-to-peakLa conversion utilise la relation pour les signaux sinusoïdaux : $V_{pp} = 2\sqrt{2} \times V_{RMS}$
Check out similar posts by category:
Signal Processing, Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow