Synchronize data output with clock pulses.
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
Jarrod Rivituso
2011-3-28
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?
回答(1 个)
MarkB
2011-3-29
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subsystems 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!