check if simulation failed

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 个评论

Alex - please provide more details. How is the simulation linked to the GUI? Are you using Simulink?

请先登录,再进行评论。

 采纳的回答

Walter Roberson
Walter Roberson 2016-9-23

0 个投票

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 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by