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!