Why is my Data Store Memory's initial value ignored?

I have a simple model, and I'm using a data store memory to hold a value. I want the intial value to be 60 at the start of the simulation, but everytime I run, it initializes to 0. Why could that be? I'm using R2018b.

 채택된 답변

Mark McBroom
Mark McBroom 2019년 1월 21일

0 개 추천

Are specifying intial value in the Data Store Memory block and/or the Z-2 block? With this design I think you will need to initialize both.
You might want to also consider redesigning your model so that you are not using data stores.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 1월 21일

답변:

2019년 1월 21일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by