필터 지우기
필터 지우기

real-time FFT in simulink

조회 수: 29 (최근 30일)
Mohammad Ali Sadeghian
Mohammad Ali Sadeghian 2023년 4월 23일
답변: Mohammad Ali Sadeghian 2023년 4월 26일
Hello,
anyone here knows how to model a real-time FFT in simulink?
Thanks,

채택된 답변

Sufiyan
Sufiyan 2023년 4월 25일
Hi,
Here are the steps to create the model.
  1. Open a new Simulink model.
  2. From the Simulink Library Browser, open the "DSP System Toolbox" library.
  3. Drag the "FFT" block into the model.
  4. Connect the input signal to the "FFT" block.
  5. Set the FFT length parameter to desired number of samples. This should always be a power of 2.
  6. Connect the output of the "FFT" block to a "Spectrum Analyzer" block, which can be found in the "DSP System Toolbox" library. This block will display the frequency spectrum of the input signal in real-time.
  7. Configure the "Spectrum Analyzer" block as needed to set the frequency range, sample rate, and other parameters of the display.
You can refer to FFT block for more information to set parameters.
Hope this helps!

추가 답변 (1개)

Mohammad Ali Sadeghian
Mohammad Ali Sadeghian 2023년 4월 26일
Dear Sufiyan,
Many thanks for your prompt reply,
May i ask you that is possible to write a function to obtain an online fft frequency tracking in simulink?
Thanks
Ali

카테고리

Help CenterFile Exchange에서 Spectral Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by