THD of the output voltage

3 views (last 30 days)
ASIF ALI
ASIF ALI on 25 May 2023
Edited: Abhishek on 23 Jun 2025
I am trying find THD of signal but it doesnot give any result, as shown in image attached
  2 Comments
Mathieu NOE
Mathieu NOE on 25 Apr 2025
hello
what tool / function are you using ?

Sign in to comment.

Answers (1)

Abhishek
Abhishek on 23 Jun 2025
Edited: Abhishek on 23 Jun 2025
Hi @ASIF ALI,
The message "Selected signal. FFT window not shown (invalid settings)" typically appears when the configuration of the FFT analysis in Simulink is not valid for the signal being analyzed.
In most cases, this is due to a mismatch between the simulation settings and the requirements of the FFT tool. For example, the simulation time must contain an integer number of cycles of the fundamental frequency. If the number of cycles or the fundamental frequency is incorrect, the FFT window cannot be defined properly, which prevents the tool from performing the calculation.
To solve this issue, you can try out the following steps:
  • Ensure the signal is properly logged: Right-click the signal you want to analyze and select "Log Selected Signals". This ensures the signal appears in the FFT analysis window.
  • Verify fundamental frequency and number of cycles: In the Powergui FFT analysis dialog, make sure the fundamental frequency matches your signal, and that the number of cycles selected covers full periods of the signal.
  • Check simulation time: The simulation stop time should be set so that it includes an integer number of cycles of the fundamental frequency. For example, for a 60 Hz signal and 6 cycles, use a stop time of 0.1 seconds.
  • Use appropriate solver settings: Ensure that the simulation uses a discrete solver, especially when working with power systems. Sample time and solver type should be compatible with the FFT tool.
  • Avoid conflicting blocks or configurations: Check for other blocks that might interfere with signal access or modify the data unexpectedly before it reaches the FFT tool.
You can refer to the official MATLAB documentation for more details:
Hope it helps.

Categories

Find more on Specialized Power Systems 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!