Why is a triggered subsystem activated on the second rising edge

In the demo "sldemo_counters" the counter circuit in the triggered subsystem counts to 1 afther the second rising edge. Why is this the case?

 채택된 답변

Sebastian Castro
Sebastian Castro 2015년 10월 7일

0 개 추천

It's because of the Unit Delay block "delaying" the output by 1 trigger.
If you move the Unit Delay block to the lower branch of the loop in the Triggered Subsystem (i.e., after the Output port), you get the counter firing on the first rising edge, as you originally expected.
- Sebastian

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Conditionally Executed Subsystems and Models에 대해 자세히 알아보기

질문:

2015년 10월 7일

댓글:

2015년 10월 7일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by