Simulink "globals" not working as expected
5 ビュー (過去 30 日間)
Daniel Harman 2022 年 7 月 30 日
コメント済み: Daniel Harman 2022 年 8 月 4 日
I have an open loop simulink model. It runs one time step and stops. I would like some of the intermediate data for run i to be available in run i+1. I have tried to use Data Stores. I write the intermediate data to them on run i and then have a read on i+1 that tries to use them. All that happens is it passes back the initialzed value each time. Is there a way to use Data Stores as I am attempting to use? If not, can you suggest an alternative? Thanks!
Fangjun Jiang 2022 年 8 月 1 日
"global" data store is not meant for saving data between different simulation runs.
Refer to this:
その他の回答 (0 件)
Find more on Event Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!