Start Simulink sim with persistent variables, using stored state
조회 수: 1 (최근 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!