How to stop simulink build after first error?

10 views (last 30 days)
I have a large Simulink project that is slow to build on a new high end gaming desktop. When I press the green "Run" button in Simulink and an error is found, I can see the error readout in the "Diagnostic Viewer" but Matlab prevents me from starting to fix the error (edit the code) until the build finishes. However, the build can take another minute before it finally stops, even though I know it will fail. This is a waste of my time, and I would like the ability to stop the build after the first error is found so I can fix it faster (and overall work faster). Any thoughts? Thanks!
  1 Comment
Hugo Lambert
Hugo Lambert on 25 Mar 2020
It is an old post, but it may help someone in need.
To my knowledge there is not proper way to do this. At least I did not find any model configuration to do this.
There is however one trick, but to use sparingly : press manualy " CTLR + C " in the command window of Matlab to stop simulink compilation.
However, this is a hard stop, it is not a clean way. After some times, Matlab may crashes unexpedly.

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!