Why is a triggered subsystem activated on the second rising edge

7 views (last 30 days)
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?

Accepted Answer

Sebastian Castro
Sebastian Castro on 7 Oct 2015
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

More Answers (0)

Categories

Find more on Conditionally Executed Subsystems and Models in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!