Stateflow chart without states

6 次查看(过去 30 天)
John F
John F 2011-9-16
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?

回答(2 个)

Fangjun Jiang
Fangjun Jiang 2011-9-16
You need to have a destination for the transition. Use the Junction if you don't have any State.
  2 个评论
John F
John F 2011-9-16
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?
Fangjun Jiang
Fangjun Jiang 2011-9-16
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.

请先登录,再进行评论。


Wilfred
Wilfred 2011-10-4
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 个评论
Fangjun Jiang
Fangjun Jiang 2011-10-4
It is not true. A state chart can have just junctions and transitions.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Complex Logic 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by