Model error in Simulink - Singularity error
10 次查看(过去 30 天)
显示 更早的评论
I am currently working on a project that involves building a PID controller for voltage and current, with feedback loops for both. I have constructed the circuit based on the control equations. However, when I run the simulation, I encounter a singularity issue that I am unable to resolve.
I would greatly appreciate it if someone could take a look at my model and suggest the necessary changes to overcome this problem. Any advice on tuning the PID parameters or adjusting the feedback loops would also be helpful.
0 个评论
回答(1 个)
Shivam Gothi
2024-11-17,11:45
From the screenshot of Simulink model attached by you, it is not clear what the circuit is trying to simulate and how the PI inner and outer control loops are working. But, upon investigating the model, I found some potential reasons that are causing the singularity error.
This error mainly occurs when the solver is not able to find a solution for the circuit through iterative methods. In your case, this happens because your circuit has many “open-circuited” paths and many of the components have floating teminals as shown in the below given figure. (Note: Here , the term ”floating terminals” means the terminals that are not connected anywhere.)
Cause of error:
Circuit contains open-circuited paths ,floating terminals and short circuited pulsed voltage source.
Suggestions to fix the error:
Generally, no path of the circuit is kept floating or open circuited. But if your application demands that, connect a high value resistance across the floating terminals and ground.As a next step, look around for all the open circuited paths in your circuits and close the circuit with high value resistance in series.
I hope this answers your question !
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Simscape Electrical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!