FFT analysis through powergui block is showing empty in signal options.
Show older comments
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.
23 Comments
Vasantha Kumar
on 2 Aug 2019
I am also facing the same issue with matlab 2019
SACHU SEBASTIAN
on 13 Nov 2019
I am using MATLAB 2019a and i also faced this problem. when FFT analysis is done from Powergui The signals are shown as EMPTY .
The reason for this is that, in the Model Configuration Parameters in "Data Import/Export" Section, the option "Single simulation output" has been selected.
untick the "Single simulation output"
It worked for me . It will work for you sure.
yuchen yang
on 26 Nov 2019
nice bro!
Kumaresan Selvakumar
on 26 Nov 2019
Sachu. Thx for ur comments. It worked for me
Runze Hou
on 9 Dec 2019
SACHU. Thank you.
NN
on 13 Jul 2020
thank you
Anwesha Mukjopadhyay
on 11 Sep 2020
thank you
Isaac Ortega Velázquez
on 3 Nov 2020
thank you.
Hamza Ehsan
on 11 Nov 2020
i am using matlab2019b and i am tired of changing discrete value of powergui but FFT analysis since showing empty results. I have also changed Configuration Parameters in "Data Import/Export" Section, the option "Single simulation output" to unselected but nothing showing. Your help will be appericiated.
Mondjé N'DORI
on 14 Nov 2020
Thank you, it also worked for me!
Faisal Tariq
on 22 Mar 2021
Thank you
it worked
Maria Tariq
on 28 Apr 2021
where is signle simulation output
mayank sunhare
on 21 May 2021
Thank you, it's working.
Woraphat Ekasittiphong
on 17 Apr 2022
sry where is the Data Import/Export interface on simulink
Alexander Magnusson
on 24 Jan 2023
Thanks!
The Data Import/Export is located at Simulation -> Prepare -> configure logging. It's just a bit to the left of the run button hidden under a drop down
Ahmet
on 26 Jun 2023
Thanks... Worked
CHAITANYA
on 17 Nov 2023
Thanks @SACHU SEBASTIAN
RANIT SENGUPTA
on 30 Dec 2023
Great. It works. Thanks a lot
parvathy ss
on 28 Feb 2024
thank you
Shyju
on 5 Apr 2024
Thank you Sachu
Steven
on 1 May 2024
Thanks a lot !
Navin
on 29 Oct 2024
thanks a lot
Saqib
on 3 Jul 2025
i faced this issue in Matlab 2023b. This solution worked for me. Goto>>Modeling>>Data Import/Export>> uncheck single simulation output
Answers (4)
SALAH alatai
on 31 May 2021
10 votes
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 Comments
ali yildiz
on 21 Jun 2021
Thank you, it helped me a lot
Vijaya Laxmi
on 18 May 2022
thank you. it helped me also.
Hari Babu
on 10 Jul 2022
Thanks alot. this helped me alot.
Yola Warnita
on 14 Jul 2022
what about matlab 2022a?, i can't bring up the fundamentals on fft analysis
Roni
on 22 Jul 2024
it worked
Navin
on 29 Oct 2024
thanks a lot
Eng.
on 14 Oct 2023
2 votes
In response to Mr. Salah's correct solution, I attach his solution steps with pictures. Thank you Mr. Sala

1 Comment
Sri harshitha
on 24 Jan 2024
Thanks a lot
mohammad ebrahimy
on 15 Mar 2021
1 vote
the Answer is in the comments of post 👆
in case you didn't see it
Kaashyap Pappu
on 26 Jul 2019
0 votes
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.
Hope this helps.
Categories
Find more on Data Logging in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!