How to define and output signals in array form from stateflow chart ?
Show older comments
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
Accepted Answer
More Answers (1)
Prasad Desai
on 21 May 2015
0 votes
Categories
Find more on Decision Logic in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!