what is the difference between data store memory and goto-from blocks ?

22 ビュー (過去 30 日間)
Noufal Thangal Rahim
Noufal Thangal Rahim 2018 年 9 月 13 日
コメント済み: Titus Edelhofer 2018 年 9 月 14 日
in this example given in the page-> Model Global Data by Creating Data Stores
Data store memory (read/write) is used for getting the Error to switch between two values.
Instead, why can't the goto- from blocks be used ?

採用された回答

Titus Edelhofer
Titus Edelhofer 2018 年 9 月 13 日
Hi Noufal,
the main difference is, that data store memory and read/write remove the dependency between reading and writing, i.e., the data flow: you can read and write anywhere in the model at any time.
In contrast the from-goto blocks are like having a connection between the goto and the from (it's only a different representation, instead of drawing a line you use the from/goto). But the data dependency stays intact.
Titus
  5 件のコメント
Walter Roberson
Walter Roberson 2018 年 9 月 14 日
Using a DSM sounds like it would give problems if it is an input into an algebraic loop.
Titus Edelhofer
Titus Edelhofer 2018 年 9 月 14 日
That's a good remark: depending on how connected, execution order might be changed to have no algebraic loops ...

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by