Error while using array or vector in state chart.

1 Ansicht (letzte 30 Tage)
Sujith Kumar Goranthala
Sujith Kumar Goranthala am 11 Mär. 2020
Beantwortet: Jesús Zambrano am 21 Dez. 2020
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!

Antworten (1)

Jesús Zambrano
Jesús Zambrano am 21 Dez. 2020
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.

Kategorien

Mehr zu Complex Logic finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by