How can I detect peaks in real time with using Simulink?
조회 수: 42 (최근 30일)
이전 댓글 표시
Hello I have really strong issue with this topic. I have searched and examined several articles about peak detection in real time with using simulink. However I couldn't find suitable algorithm etc. Actually I am asking that algorithm but it would be better if anyone has worked this with Simulink. By the way I know about Matlab Function in Simulink but my problem is I couldn't adapt that in real time. Any comments or ideas will be fine. Many thanks in advance.
댓글 수: 0
답변 (2개)
Rodney Case
2019년 3월 12일
I had a similar problem. Here's how I approached it. I have a periodic signal where the fundamental frequency is known a priori. I want to output the peak-to-peak amplitude for the most recent period of the fundamental frequency as it evolves throughout my simulation. I used a Tapped Delay block in Simulink to sample the signal and output the most recent n samples. I chose the sample period for the block such that the block output will always contain slightly more than 1 full period at the fundamental frequency. Consequently, the Tapped Delay block contains n samples for 1 period of the fundamental frequency. Then, I used max and min blocks to get the highest and lowest values from the Tapped Delay. The difference between these two values is the peak-to-peak amplitude of the most recent fundamental period but I also have access to the most recent peak values. Sampling the peak-to-peak amplitude signal at the fundamental frequency provides a nice clean history of peak-to-peak values for plotting.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!