Set the active state in Stateflow directly?

조회 수: 2 (최근 30일)
Song
Song 2015년 10월 29일
댓글: Song 2015년 10월 29일
I have found a thread regarding to reset the states and locals of a sf chart.
But does anyone know how to set a certain state in chart active directly, e.g. through inputs, parallel states/conditons etc?
I need this so that I can use Sf to generate codes for different instances of class. Eg. objectA is in State1 and objectB in State2 of the same sf. Then each time the same function codes generated by this sf will be used for objectA/B treating their different states.
Any idea? Thsnks
  댓글 수: 1
Song
Song 2015년 10월 29일
Is is possible to realize this without atomic sub-chart?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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