Stateflow chart without states

I have seen examples before of using a state chart without states to implement logical expressions. I tried doing this recently, and I got warnings that none of my assignments would be executed because the actions did not end in states. Why would that be?

Risposte (2)

Fangjun Jiang
Fangjun Jiang il 16 Set 2011

0 voti

You need to have a destination for the transition. Use the Junction if you don't have any State.

2 Commenti

John F
John F il 16 Set 2011
I have a junction at the end.
I don't have any states in the diagram. I'm just using transitions to do logic. Does that make a difference?
No. We do flow chart logic all the time using Stateflow. What version of MATLAB are you using? Did the result come out correct? Maybe it's just a friendly warning.

Accedi per commentare.

Wilfred
Wilfred il 4 Ott 2011

0 voti

AFAIK, "state charts" with just junctions and transitions , and no states, can only be defined within a graphical function. Search the user manual for "graphical function" and you'll see the examples.

1 Commento

It is not true. A state chart can have just junctions and transitions.

Accedi per commentare.

Categorie

Scopri di più su Decision Logic in Centro assistenza e File Exchange

Prodotti

Richiesto:

il 16 Set 2011

Community Treasure Hunt

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

Start Hunting!

Translated by