필터 지우기
필터 지우기

stateflow expected a scalar error

조회 수: 4 (최근 30일)
Amish Rughoonundon
Amish Rughoonundon 2017년 12월 5일
댓글: Muthukumar Ganesan 2022년 7월 28일
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
Amish Rughoonundon
Amish Rughoonundon 2017년 12월 5일
also action language of the stateflow chart is matlab
Muthukumar Ganesan
Muthukumar Ganesan 2022년 7월 28일
Hi,
It seems that the input "moduleSelected" is vector or matrix. In conditions, vector is not allowed.
Thanks.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Stateflow에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by