Synchronize data output with clock pulses.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi. I am using simulink for my project.
How do I pause and hold an uint8 input, so that it can output in a sample time which synchronize with every clock pulses?
I am currently using the Enabled Subsystem with a clock input of 2 period. The input is uint 8, which run infinitely. However, there are missing data at the output at every interval where the clock goes zero.
Urgent. Any reply will be appreciate. Thank you.
2 comentarios
Jarrod Rivituso
el 28 de Mzo. de 2011
Could you be more clear on exactly what the inputs to your Enabled Subsystem are? What is the input to the conditional input port (the one on top) and what is the actual subsystem input? What behavior do you expect that you aren't getting?
Respuestas (1)
MarkB
el 29 de Mzo. de 2011
I believe that the issue is with the "Enable" block inside the enabled subsystem. If you double-click on this block, you can access the settings that define how it behaves when the subsystem is disabled. I believe that if you set it to "held" instead of "reset" you will get the behavior that you want.
0 comentarios
Ver también
Categorías
Más información sobre Subsystems en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!