Info

This question is closed. Reopen it to edit or answer.

Learning Stateflow, need help!

3 views (last 30 days)
Johannes Mansikkala
Johannes Mansikkala on 27 Jan 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
Hello,
I am using stateflow for the first time and have trouble getting it to work.
I am trying to make a simple state machine that has 9 stages. Stages 0-7 and end task. In each stage the output is just the stage number. I have have conditions to move from one stage to another. At this time there are only couple but in future there would be many more between various stages.
My stateflow chart goes nicely to stage one when the start pulse is read but stays there even when the condition to move to stage 2 or three is true. Somehow it is not evaluating it. Any ideas? What am I missing?
This is what I have done:
Inside:
I have added the model in attachment.
Thank for help.

Answers (1)

Johannes Mansikkala
Johannes Mansikkala on 28 Jan 2014
I found the problem myself. The clock signal I was using was not correct. I tried using the digital clock and it did not work. After I tried a generated pulse signal the system started working.

Products

Community Treasure Hunt

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

Start Hunting!