Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Danikha Shyken
Danikha Shyken le 21 Sep 2023
Commenté : Danikha Shyken le 22 Sep 2023

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 22 Sep 2023
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 commentaire
Danikha Shyken
Danikha Shyken le 22 Sep 2023
I see now. Thanks for your clear and helpful response. It's much appreciated.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by