check if simulation failed

2 views (last 30 days)
Alex
Alex on 22 Sep 2016
Answered: Walter Roberson on 23 Sep 2016
Hi all, i want to know, if it is possible to check of the simulation is failed and in that case the programm should not increment a variable in my Callback
example
if (Simulation_Failed == true)
do nothing
end
  1 Comment
Geoff Hayes
Geoff Hayes on 23 Sep 2016
Alex - please provide more details. How is the simulation linked to the GUI? Are you using Simulink?

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 23 Sep 2016
If this is referring to Simulink and using the sim() command, see the CaptureErrors . Or perhaps it is the ReturnErrorsInInput you need; I am seeing information that is confusing about that.
Example the simulation information for ExecutionInfo

More Answers (0)

Categories

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

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!