Execute code in Simulink prior to StartFcn?
1 次查看(过去 30 天)
显示 更早的评论
When the user clicks play on a Simulink model, I need to execute some code immediately. The StartFcn seems to do some compiling etc. prior to running. Can I execute code immediately after play (ie, before compiling, updating model, etc)?
0 个评论
回答(1 个)
Sebastian Castro
2015-4-20
Does the InitFcn callback do what you want? InitFcn will run during this model update phase.
- Sebastian
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model, Block, and Port Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!