Simulink stateflow condition for single pulse input
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Aadithya Iyer
el 26 de En. de 2021
Respondida: Birdman
el 26 de En. de 2021
How do I generate a single pulse in SImulink??
I want to give a single pulse source to a subsystem only when a certain condition is met. When I try doing it using simulation time, it has already given the input pulse. I want it to be activated only when the condition is met. Can this be done using Stateflow or Matlab function??
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/499948/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/499953/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/499958/image.jpeg)
I just need a single pulse, But I get like continuous pulse, when I keep i as local variable and define it as 0 initially.
I want to define i as global so that after 3 iterations it goes back
Any help is appreciated. Thank you,
0 comentarios
Respuesta aceptada
Birdman
el 26 de En. de 2021
Try the attached model. Note how the inside of Stateflow is built.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Sources 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!