check if simulation failed

2 visualizzazioni (ultimi 30 giorni)
Alex
Alex il 22 Set 2016
Risposto: Walter Roberson il 23 Set 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 Commento
Geoff Hayes
Geoff Hayes il 23 Set 2016
Alex - please provide more details. How is the simulation linked to the GUI? Are you using Simulink?

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 23 Set 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

Più risposte (0)

Categorie

Scopri di più su Simulink Environment Customization in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by