How to set my simulation powergui into continuous mode?

12 views (last 30 days)
My LLC converter simulation is running well when set the powerGUI into discrete mode but have error when shift it into continous mode.
The error is:
An error occurred while running the simulation and the simulation was terminated
Caused by:
  • Derivative of state '1' in block 'LLC_DualCtrl/powergui/EquivalentModel1/State-Space' at time 0.013000000000000001 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)
How to fix this error, the input voltage seems be infinite.

Accepted Answer

Arun
Arun on 26 Apr 2024
Hi Boheng Zhao,
I understand that you encounter an error while running the simulation with powerGUI” block in continuous mode.
As a work-around to successfully run the shared model in MATLAB R2023b please change the following Configuration Parameters:
  1. Under the Modeling tab, open “Model Settings’ (Ctrl +E). This will open the “Configuration Parameters” window.
  2. Select ‘Solver’ from the list on the left, then change Solver selection Type to ‘Variable-step’
  3. In the same section, under Solver details, change Zero-crossing options to “Disable All.
For more information, please refer the shared MathWorks documentation links:
  1. powergui” block: https://www.mathworks.com/help/sps/powersys/ref/powergui.html
  2. Zero-Crossing Detection: https://www.mathworks.com/help/simulink/ug/zero-crossing-detection.html
I hope this helps!

More Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!