Hi Paul,
The model fails to simulate because the other circuit components operate under discrete rate while the spectrum analyzer operates under a continuous rate. You can make the following changes to your model:
- Add a rate transition between the PS-Simulink converter and the Spectrum Analyzer block.
- Change the solver type to "Fixed-type" under Model Settings>Solver.
- Change the Sample rate of the spectrum analyzer to a value greater than or equal to twice the voltage source frequency.
The figure below illustrates the changes made to the Simulink model:
You can also refer to the attached Simulink model(.slx file) with the suggested changes.
Hope this helps!