How to debug "mysterious" Simulink errors?
1 view (last 30 days)
Show older comments
Hello,
every now and then I discover very mysterious Simulink Errors that don't state where the problem occured. E.g.:
![Simulink_Error4.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223462/Simulink_Error4.png)
![Simulink_Error3.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223463/Simulink_Error3.png)
![Simulink_Error2.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223464/Simulink_Error2.png)
Last week I even got a message that only said " ****Error**** ".
In all the above cases of course I didn't have any variables called X,x or k...
Since the Simulink model I'm working on is pretty big, it is very frustrationg to look for a solution to these error-messages. And even though I know what I changed about the modell, these errors may occure somewhere that isn't close to what I've changed...
What I want to know is, if there are any guidelines or tipps on how to solve errors like this? What do you do when you encounter these kind of issues?
Thank you,
Timmy
0 Comments
Answers (2)
Dimitry Markman
on 10 Jun 2019
try the following
instead of start simulation from the menu
start simulation from the command line
try; sim(bdroot); catch E;end
take a look at E, at least it will give you error ID
so you can use ID for reporting to Mathworks support
thanks
0 Comments
PIYUSH AGGARWAL
on 6 Jun 2019
Try making your model fixed step auto in the config settings and then check for Simulink Design Verifier compatibility. Then try to detect design errors and overflows in model logic using SLDV. SLDV can directly help you in indentifying where the problem in your model is. But as you said your model is very large, Do make sure that you are not using any SLDV incompatible block in your model.
Hope this Helps!
Thank you
0 Comments
See Also
Categories
Find more on Component-Based Modeling 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!