Re: help me about this very simple stateflow chart
- From: "Satyanarayana Malukurti" <satyanarayana.malukurti@xxxxxxxxxx>
- Date: Mon, 15 May 2006 08:13:35 -0400
HI Ashish,
i need intermediate values of a counter 'i' in "for" loop to trigger
someother functionality in the other chart. After executing that
functionality it has to come back to original for loop without
triggering the entire chart once agian and increment the counter 'i'
and then with this counter 'i', i need call again same functionality
once again. How i can get the intermediate values of counter 'i' for
one time trigger of chart?
Thanks and Regards,
Satyanarayana M
Praetorian wrote:
it
cdrsir wrote:
I just have tried the example from the matlab help file thatusing the
stateflow to do a For Loop. but why is my results/output[speed]become
immediately 100?
screen shot of the statflow chart[8K]
<http://cdrsir.googlepages.com/stateFlowForLoopTry.PNG>
results/output [speed] [11K]
<http://cdrsir.googlepages.com/stateFlowresultSpeed.PNG>
the simulink model (matlab/simulink needed) [27K]
<http://cdrsir.googlepages.com/stateFlowForLoopTry.mdl>
thanks
You've created a loop which is entered only if i < 100 and once
is.
entered, cannot be exited until i > 100; so the first time that
your
chart is triggered i is incremented until it reaches 100, the
entire
incrementing operation happens within a single time step which is
why
you only see the final value instead of intermediate values. If you
want to see a ramp/stair step waveform remove the self loop and
increment i once every time the chart is triggered.
HTH,
Ashish.
- Follow-Ups:
- Re: help me about this very simple stateflow chart
- From: Adi Agrawal
- Re: help me about this very simple stateflow chart
- From: Praetorian
- Re: help me about this very simple stateflow chart
- Prev by Date: Re: i need a information about GMM
- Next by Date: deleting an item from a listbox
- Previous by thread: Re: i need a information about GMM
- Next by thread: Re: help me about this very simple stateflow chart
- Index(es):
Relevant Pages
|
Loading