Hello, could someone kindly assist me in resolving this error?

4 ビュー (過去 30 日間)
Danikha Shyken
Danikha Shyken 2023 年 9 月 21 日
コメント済み: Danikha Shyken 2023 年 9 月 22 日

採用された回答

Fangjun Jiang
Fangjun Jiang 2023 年 9 月 22 日
A Simulink model describes a "data flow". It is different than a "code flow", where "voltage_input" is just a variable stored in a memory location. Here in Simulink in a Stateflow chart, "voltage_input" represents an input port. You can't do "voltage_input=voltage_input+1" to change the value of the input port.
You can do "TempValue=voltage_input+1" to resolve it. Think of "voltage_input" represents the actual voltage of a physical input port.
  1 件のコメント
Danikha Shyken
Danikha Shyken 2023 年 9 月 22 日
I see now. Thanks for your clear and helpful response. It's much appreciated.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by