필터 지우기
필터 지우기

stateflow timer runs faster than discrete time step

조회 수: 2 (최근 30일)
Sina Shojaei
Sina Shojaei 2015년 10월 14일
편집: Sina Shojaei 2015년 10월 14일
Hi, I have a model simulated in discrete time. It has a stateflow model and I have put a timer on one of the transitions so I can hold one of the states if the condition was only valid for a very short time. if timer > 4 seconds then I want the transition to happen The problem is that the fundamental simulation time step is 1 second, but the timer counts to 4 in less thant 1 seccond, i.e. the during function repeats 4 times or more per seccond. I had the same problem with after(waitTime,tick) too.
The update mehtod of the chart is set to discrete and sample time to 1 second.
Has anyone seen this problem before? Please help.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by