transferring data element between charts in stateflow

1 回表示 (過去 30 日間)
Ahmad Falih
Ahmad Falih 2020 年 11 月 26 日
編集済み: Divyajyoti Nayak 2024 年 12 月 24 日
Hi all
I have the above chart ... .... where Previous_stage is an input data element to the chart from the chart that preceded it and its value is one. But when reading Previous_stage inside the chart, its reading is zero .. Please what is wrong

回答 (1 件)

Divyajyoti Nayak
Divyajyoti Nayak 2024 年 12 月 24 日
編集済み: Divyajyoti Nayak 2024 年 12 月 24 日
To use input data in a Stateflow chart from other charts or Simulink blocks, the symbol (variable) for the data must be resolved as input data type. This can be done in the Symbols Pane of the Stateflow chart.
The issue you are facing is because of the typo ‘Previous_satge’ instead of ‘Previous_stage’. This would have created another symbol in the Symbols Pane and will be treated as another input to the chart with a default value of zero.

カテゴリ

Help Center および File ExchangeStateflow についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by