Filter löschen
Filter löschen

stateflow expected a scalar error

4 Ansichten (letzte 30 Tage)
Amish Rughoonundon
Amish Rughoonundon am 5 Dez. 2017
Hi, I am getting this error when trying to compile my stateflow design
Expected a scalar. Non-scalars are not supported in IF or WHILE statements, or with logical operators. Instead, use ALL to convert matrix logicals to their scalar equivalents. Transition '[moduleSelected]' (#1064) "moduleSelected"
moduleSelected is an input defined as a boolean
I am at a loss why stateflow is giving me this error for this simple check. I have attached a picture of the statemachine. Thanks
  3 Kommentare
Amish Rughoonundon
Amish Rughoonundon am 5 Dez. 2017
also action language of the stateflow chart is matlab
Muthukumar Ganesan
Muthukumar Ganesan am 28 Jul. 2022
Hi,
It seems that the input "moduleSelected" is vector or matrix. In conditions, vector is not allowed.
Thanks.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Stateflow finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by