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?

 Respuesta aceptada

Sebastian Castro
Sebastian Castro el 7 de Oct. de 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

Más respuestas (0)

Categorías

Más información sobre Conditionally Executed Subsystems and Models en Centro de ayuda y File Exchange.

Preguntada:

el 7 de Oct. de 2015

Comentada:

el 7 de Oct. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by