How to define and output signals in array form from stateflow chart ?
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Prasad Desai
el 21 de Mayo de 2015
0 votos
Categorías
Más información sobre Decision Logic en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!