check if simulation failed

1 次查看(过去 30 天)
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 个评论
Geoff Hayes
Geoff Hayes 2016-9-23
Alex - please provide more details. How is the simulation linked to the GUI? Are you using Simulink?

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2016-9-23
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by