Stateflow while-logic dead loop
Mostrar comentarios más antiguos
I'am using stateflow to model a system.

With this logic i am expecting if the input is 1, the output should be 1. If the input is not 1, do nothing (it'a one-time logic, if the input is once not 1, the output will be none from then).
I used a step signal from 1 to 2 as an input. But the simulation can't proceed since its a dead loop at first time step. Why is that and how to solve this?
2 comentarios
VBBV
el 28 de Mzo. de 2024
Try using a continuous signal instead of step signal
Dingxin Wang
el 28 de Mzo. de 2024
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Stateflow en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!