Bangs missed with Delay Node

Sometimes I miss bangs when using the delay node. Says it all really. Its not always the case, or as in the example below, often the case, but it can lead to critical errors if your program depends on receiving the bang.

Missed Bangs due to delay

Yes, the code used for delay can miss single frame bangs in the history when the current frame time difference was long and the last bang is further in the past than one frame… So only use delay for continuous values.

That’s also why bangs over network or in other critical scenarios should be modeled with a counter, as it is the only reliable way to keep the information of how many bangs have happened since the last frame.

For simple bang delay use a MonoFlop, it might miss double bangs in the past, but usually works well.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.