フィルターのクリア

Simulink error using Data Store Read/Write

38 ビュー (過去 30 日間)
Lucas
Lucas 2012 年 10 月 10 日
I get the following error when I compile my model:
The block 'Util/Common/ReadToggled_LampTest' is reading from the data store 'Util/Common/Toggled_LampTest' before one or more blocks have written to this entire region of memory at time 0.0
I search the internet with different versions of the error that I got and I didn’t see anything on the error that I currently have. What do I need to do to fix this error without setting my configuration parameters from error to warning?

採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 10 月 10 日
Have you verified that 'Util/Common/ReadToggled_LampTest' is indeed not reading from 'Util/Common/Toggled_LampTest' before it's been written to? You can look at the block sorted order to see if 'Util/Common/ReadToggled_LampTest' is executing before the block that writes to 'Util/Common/Toggled_LampTest' does.
  2 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 10 月 11 日
Lucas: As the documentation that I linked to says "Simulink honors the block priorities that you specify unless they violate data dependencies" - so I think restructuring the model is the right way to go.
Kaustubha Govind
Kaustubha Govind 2012 年 10 月 12 日
Thanks for pointing that out!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by