Repeating sequence as an input to a stateflow chart from Simulink, the first value is not read and calculated
조회 수: 6 (최근 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?
댓글 수: 1
Fangjun Jiang
2021년 2월 19일
sounds abnormal. You need to show the model or example. lots of possible causes.
답변 (2개)
SaiDileep Kola
2021년 2월 25일
Use the process described here to detect common modeling errors explained here
댓글 수: 0
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.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!