필터 지우기
필터 지우기

Simulink Stateflow execution of commands without prefixes

조회 수: 3 (최근 30일)
Joshua
Joshua 2023년 10월 13일
답변: Dallas Perkins 2023년 10월 13일
In a stateflow chart state such as the one above, where there is an algebraic command without an 'en:' , 'ex:' or 'du:' what will the state do.
The example above has the command Tmr = Tmr + 1 without a prefix. Say the exit state relies on Tmr being greater than 5, and it enters the state at 0. Will the Tmr execute only on entry, such as with 'en:' prefix, or will it function like 'du:'.
I also have a follow up question of if it does execute like the prefix 'du:' would imply. What determines the time between each execution?

답변 (1개)

Dallas Perkins
Dallas Perkins 2023년 10월 13일
Hi Joshua,
These will be treated as a combined entry/during action:
You can specify the rate for the chart in Modeling -> Chart Properties or it will try to inherit its rate from the solver settings or connected blocks/signals.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by