Error while using array or vector in state chart.

조회 수: 3 (최근 30일)
Sujith Kumar Goranthala
Sujith Kumar Goranthala 2020년 3월 11일
답변: Jesús Zambrano 2020년 12월 21일
Im getting attached error when try to use array or vector in statechart.
I decleared index as fanID initially set to {fanID=1;} and entry condition as V_fan(fanID)=0;
can anyone help me getting it right.
thanks in advance!

답변 (1개)

Jesús Zambrano
Jesús Zambrano 2020년 12월 21일
I think fanID should be of size 1, since it is a scalar that will change its value (1 or 2) during the chart execution.
By the way, I see that you are using fanID=1 in the whole chart. I guess the chart is not completed, or? Same with fan_mode.

카테고리

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