check if simulation failed
2 次查看(过去 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
2016-9-23
Alex - please provide more details. How is the simulation linked to the GUI? Are you using Simulink?
采纳的回答
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.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!