Is it possible to force mask initialization externally?
3 ビュー (過去 30 日間)
古いコメントを表示
回答 (1 件)
Randy
2016 年 12 月 19 日
There may be a better way, but in the meantime, this works for me:
ts = Simulink.BlockDiagram.getSampleTimes(sysname);
I'm not really interested in the sample times, but this command forces an update diagram, so blocks will execute their initialization code.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!