FFT analysis through powergui block is showing empty in signal options.

237 ビュー (過去 30 日間)
ANIMESH UPADHYAY
ANIMESH UPADHYAY 2019 年 7 月 19 日
コメント済み: NAVIN SAM D 2024 年 10 月 29 日 6:16
Hi all,
I have to obtain the fft bar plot of the 5 level stepped sinusoidal wave which is the output of the 5 level cascaded multilevel inverter. I have changed the scope settings also to loggin>struct with time. I have tried changing the powergui to discrete as well with different time steps. Still i am not able to view anything in the FFT bar plot. Can anyone suggest any remedy for it or is there any setting problem in my MATLAB. I'm using MATLAB 2019 version.
  22 件のコメント
Steven
Steven 2024 年 5 月 1 日
Thanks a lot !
NAVIN SAM D
NAVIN SAM D 2024 年 10 月 29 日 6:16
thanks a lot

サインインしてコメントする。

回答 (4 件)

SALAH alatai
SALAH alatai 2021 年 5 月 31 日
Go to model configuration parameters in "Data Import/Export" Section, you will find the option "Single simulation output" has been selected. remove the tick on single simulation output".
  6 件のコメント
Roni
Roni 2024 年 7 月 22 日
it worked
NAVIN SAM D
NAVIN SAM D 2024 年 10 月 29 日 6:16
thanks a lot

サインインしてコメントする。


Eng.
Eng. 2023 年 10 月 14 日
In response to Mr. Salah's correct solution, I attach his solution steps with pictures. Thank you Mr. Sala

mohammad ebrahimy
mohammad ebrahimy 2021 年 3 月 15 日
the Answer is in the comments of post 👆
in case you didn't see it

Kaashyap Pappu
Kaashyap Pappu 2019 年 7 月 26 日
Hi,
Given that I have been unable to reproduce this issue, a possible workaround I have identified would be to connect the output of the “PS-Simulink Converter” to the “Scope”, check “Log Data to workspace” under the Logging tab and select “Save format” as an Array.
Run the model, and the logged data would appear as an array with 2 columns. Using the “fft” function and “bar” function, calculate the Fourier transform on the second column of the logged variable and obtain the bar plot. If the variable name is ScopedData, the second column can be accessed using ScopedData(:,2).
Use the “abs” function to obtain the magnitude of FFT. Note that "fft" returns a 2-sided spectrum.
The documentation for “fft” is here, for “abs” is here and for “bar” is here.
Hope this helps.

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by