Start Simulink sim with persistent variables, using stored state
2 ビュー (過去 30 日間)
古いコメントを表示
I have a simulink simulation with matlab function blocks that contain persistent variables.
Since switching to Matlab R2022, (from R2021a) I have been unable to start my Simulink sim from a saved state and have have the persistent variables populated. Is there something particular that needs to be done to save the persistent variables? These revert to the null vector when starting from a saved state.
5 件のコメント
Paul
2023 年 2 月 16 日
I should have suggested to also check the Bug reports as well.
If you do contact Tech Support, would you mind posting back here summarizing the response? Probably of interest to others using the Model Operating Point feature.
回答 (1 件)
Sulaymon Eshkabilov
2023 年 2 月 15 日
Suppose that you have followed these guides with the persistent variable initialization in your model: DOC
参考
カテゴリ
Help Center および File Exchange で Naming Conventions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!