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

조회 수: 1 (최근 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 CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by