Error while running simulink
조회 수: 10 (최근 30일)
이전 댓글 표시
Hi ,
I am trying to simulate a physical system (plant plus noise discrete TF model), when connected to a piezo stack actuator.
However , I keep receiving the following error.
""""An error occurred while running the simulation and the simulation was terminated
Trouble solving algebraic equations in differential-algebraic system. Singular iteration matrix encountered with step size 0.1 at time 0.0. Consider providing more accurate initial conditions. If the problem persists, check the model structure and values of parameters."""" I have added an image of the same here.. Appreciate any clues on how to fix it!!!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148161/image.bmp)
댓글 수: 0
답변 (2개)
Sebastian Castro
2015년 8월 17일
I think you might need Mass blocks, because if you have a force acting on a node with no mass to accelerate, then you get the error you're seeing. Think of F = ma if m = 0. How does the tool figure out what a is?
You definitely need a mass on the right side (R port of the Electromechanical converter). Not sure about the left side, as it depends on how that Piezo Stack block is implemented. Try that out too if a mass on only the right side still gives you the same errors.
- Sebastian
- Sebastian
댓글 수: 2
Sebastian Castro
2015년 8월 18일
Definitely doesn't have to do with the solver.
Have you tried adding an Electrical Reference block to the electrical portion of your model?
- Sebastian
mohsen teimoori
2021년 1월 20일
Hello, How are you?
excuse me, I have one problem the same as top text about solver
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/494214/image.png)
why has this problem?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/494219/image.png)
what is solve way? thank you
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Electromagnetic Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!