Automation / Delays and pulses |
![]() |
![]() |
| Vectorized | C | |
in the palette | on the schematic |
It forms a pulse of at least the set pulse duration when the input changes from zero to one. At the same time, the pulse is prolonged again by the preset duration, if there is another change of input from 0 to 1 during the formation of the previous pulse. Algorithm of the block operation: if the input signal has changed from zero to one (or to non-zero value), the block forms a logical unit at the output for a specified time. In this case, during the entire pulse (while the block output is 1), the block also takes into account the changes in the input signal and at the next change from 0 to 1, the pulse is formed once again ("picked up"), and the pulse duration is counted from the moment of the last change in the input from 0 to 1.
Let's consider three blocks with pulse durations not more than 1, 4 and 10 seconds. At the same time, the same signal of the "Square signal" type with a full period of 7 seconds (the duration of the first half-period is 2 s, the second half-period is 5 s) will be input to the blocks. The calculation time is 30 s: