Time delay on Stateflow transition
92 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Stefan Weis
el 30 de Abr. de 2020
Respondida: Corey Lagunowich
el 12 de Ag. de 2025 a las 12:45
Doing debounce in Stateflow used to work with such, but seems not to work anymore with release 9.7.0.1216025 (R2019b) Update 1:



I've been using this pattern over years now, just found out today it no more seems to work.
Am I doing something wrong here???
Regards
S.W.
0 comentarios
Respuestas (2)
Corey Lagunowich
el 12 de Ag. de 2025 a las 12:45
As drawn, this is behaving as expected. I think the OP wants the chart to only transition to "On" after In has been greater than 0.5 for 200 msec --- to do that, use the duration operator:
[duration(In > 0.5, msec) > 200]
0 comentarios
David Selorm
el 6 de Mayo de 2020
Possible you might be encountering may have to do with resolving a data or entry. So you may have to check that out. Try modifying it to this;


0 comentarios
Ver también
Categorías
Más información sobre Decision Logic en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!