MATLAB Answers

FFT Analysis Tool in Powergui

1,114 views (last 30 days)
Luke Perabo
Luke Perabo on 24 Aug 2016
Commented: Radha Garg on 11 Apr 2021
I want to use the powergui block for fft analysis.I am measuring three phase signals using a current measurement block connected to a scope. After running the simulation , the powergui's fft analysis does not display anything and the name and input fields display '-Empty-'. Can anyone please suggest a solution to this problem, urgently.
  16 Comments
Yasser Abdelhadi Zerouala
Thank you so much you are the best

Sign in to comment.

Answers (6)

Pradipta Kumar Pal
Pradipta Kumar Pal on 16 Aug 2019
Reply from Shishir Dwivedi, IN MathWorks Support <support@mathworks.in>:
I understand that you are not able to view the logged signal names/values in Powergui FFT Analysis tool & are able to view the "Output" signal as defined in the scope block.
The reason for this is that, in the Model Configuration Parameters in "Data Import/Export" Section, the option "Single simulation output" has been selected, this parameter enforces Simulink to return simulation outputs within a single Simulink.SimulationOutput object [As the name is provided as "Out" here, hence all Simulation Outputs are contained in this variable].
If you deselect this option, and Simulate the model, you would be able to see "Output" signal in the MATLAB Workspace and the Powergui FFT Analysis tool will reflect the name/values of Signals as expected.
  13 Comments

Sign in to comment.


Swarooph
Swarooph on 24 Aug 2016
Edited: Swarooph on 24 Aug 2016
For the FFT analysis tool to pop up data names, you need to satisfy 2 things:
  1. You should have run the simulation
  2. MATLAB workspace should have a struct variable including time with the results of the simulation. (e.g. you can use the Scope blocks to log data into the workspace, note that this needs to be struct with time)
After you do 1 and 2, you should be able to see the names pop up in the FFT analysis tool. If you don't, try clicking the 'Refresh' button to see if that helps.

V Vaishnavi Kumar
V Vaishnavi Kumar on 8 Mar 2018
Observed similar thing. In addition to above steps mentioned, set the solver in block parameters of power gui to discrete and set sample time

Aarti Srivastava
Aarti Srivastava on 17 Apr 2018

Make sure to go to the settings of Scope, Scope-> Settings -> History -> Save to workspace -> Name the desired variable -> change the format from 'Array' to 'Structure with Time' and run the program.

In the Powergui, open FFT tool, and select the signal using the name given earlier from the list of Available signals.

  1 Comment
jorel owona
jorel owona on 5 Aug 2018
Very important to use the 'structure with time'!
thanks a lot!

Sign in to comment.


rajanand patnaik
rajanand patnaik on 1 Oct 2018
i want to check FFT analysis using simscape components, but by using powergui its not working can anyone suggest me an idea to check the FFT Will be appreciated.
Thanks
  1 Comment
rakan albaz
rakan albaz on 1 Aug 2020
Reply from Shishir Dwivedi, IN MathWorks Support <support@mathworks.in>:
I understand that you are not able to view the logged signal names/values in Powergui FFT Analysis tool & are able to view the "Output" signal as defined in the scope block.
The reason for this is that, in the Model Configuration Parameters in "Data Import/Export" Section, the option "Single simulation output" has been selected, this parameter enforces Simulink to return simulation outputs within a single Simulink.SimulationOutput object [As the name is provided as "Out" here, hence all Simulation Outputs are contained in this variable].
If you deselect this option, and Simulate the model, you would be able to see "Output" signal in the MATLAB Workspace and the Powergui FFT Analysis tool will reflect the name/values of Signals as expected.

Sign in to comment.


Ameer Hamza Siddiqui
Ameer Hamza Siddiqui on 4 May 2019
yes this methodis not working
  1 Comment
rakan albaz
rakan albaz on 1 Aug 2020
Reply from Shishir Dwivedi, IN MathWorks Support <support@mathworks.in>:
I understand that you are not able to view the logged signal names/values in Powergui FFT Analysis tool & are able to view the "Output" signal as defined in the scope block.
The reason for this is that, in the Model Configuration Parameters in "Data Import/Export" Section, the option "Single simulation output" has been selected, this parameter enforces Simulink to return simulation outputs within a single Simulink.SimulationOutput object [As the name is provided as "Out" here, hence all Simulation Outputs are contained in this variable].
If you deselect this option, and Simulate the model, you would be able to see "Output" signal in the MATLAB Workspace and the Powergui FFT Analysis tool will reflect the name/values of Signals as expected.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!