Stateflow Transition to error state without line connection

조회 수: 2 (최근 30일)
Felix Brenner
Felix Brenner 2022년 4월 19일
답변: Ravi 2023년 12월 21일
Hi together,
I am in the process of creating a Stateflow chart.
In this chart there is an error state, which is reached by different states if an error flag is set. For clarity I would like to avoid drawing the transition lines and instead implement a kind of "GoTo Transition error" command (see picture). Does anyone have an idea how this works?
Thanks a lot!
Felix

답변 (1개)

Ravi
Ravi 2023년 12월 21일
Hi Felix Brenner,
I understand that the stateflow diagram is still working regardless of the reason that one transition has no destination linked to it.
The reason here is let us assume there are three states, “A”, “B”, and the “error” state. Let “B” be the state whose transition to the “error” state is not linked. Though one of the transitions in the stateflow diagram is not linked to a destination, it would show a warning but does not throw an error.The “error” state is still executed if it is reachable via other links. If the “error” state is reachable from “A” even though not from “B”, it would execute and show a warning that one of the links is not connected to the destination.
Hope this explanation resolves the issue you are facing.
Thanks,
Ravi Chandra

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by