Repeating sequence as an input to a stateflow chart from Simulink, the first value is not read and calculated

5 次查看(过去 30 天)
I used a repeating sequence as an input to a stateflow chart from Simulink, but it did not take the first value and calculate in the state. Anyone encounter similar issue?

回答(2 个)

SaiDileep Kola
SaiDileep Kola 2021-2-25
Use the process described here to detect common modeling errors explained here

Jonas
Jonas 2021-2-25
编辑:Jonas 2021-2-25
Add breakpoints in you Stateflow model, and then step each and every cycle to analyse the value of the input ports and the state of the stateflow.
Remember that it takes one time step to make a transition, and it can take another time step to execute the state itself. Depends on if you have 'en:', 'du:' and 'ex:' commands inside your state code.
Also, enable Stateflow Animations for debugging.

类别

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

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by