How to define and output signals in array form from stateflow chart ?
Ältere Kommentare anzeigen
I want to output multiple values from Stateflow Chart in form of array.
Say V_fan[] is array of order 2
i is index i.e. V_fan[i]=1;
say V_fan[0]=0 and V_fan[1]=1;
how to define that inside stateflow chart such that V_fan[i] is output variable.
I tried to define {i=0} on default block condition and in state with
entry:V-fan{i}=0;
I am getting error as Varargout expected. Code generation supports cell subscripted assignment for varargout only.
State 'FanOff' (#80) "V_fan{i}"
please refer this link see the video for first few minutes and you will understand better.
Thanks Prasad
Akzeptierte Antwort
Weitere Antworten (1)
Prasad Desai
am 21 Mai 2015
0 Stimmen
Kategorien
Mehr zu Decision Logic finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!