7-30 | ni.com
Chapter 7 Counters
Figure 7-31 shows a generation of two pulses with a pulse delay of five and a pulse width of
three (using the rising edge of Source) with CO.EnableInitalDelayOnRetrigger set to the default
True.
Figure 7-31. Retriggerable Single Pulse Generation with Initial Delay on Retrigger
Figure 7-32 shows the same pulse train with CO.EnableInitalDelayOnRetrigger set to the
default False.
Figure 7-32. Retriggerable Single Pulse Generation with
Initial Delay on Retrigger Set to False
Note The minimum time between the trigger and the first active edge is two ticks
of the source.
For information about connecting counter signals, refer to the
Default Counter/Timer Pins
section.
Continuous Pulse Train Generation
Continuous pulse train generation creates a train of pulses with programmable frequency and
duty cycle. The pulses appear on the Counter n Internal Output signal of the counter.
You can specify a delay from when the counter is armed to the beginning of the pulse train. The
delay is measured in terms of a number of active edges of the Source input.
You specify the high and low pulse widths of the output signal. The pulse widths are also
measured in terms of a number of active edges of the Source input. You can also specify the
active edge of the Source input (rising or falling).
SOURCE
GATE
(Start Trigger)
OUT
5 3 5 3
Counter
Load Values
4 3 21 0 2 10 4 3 210210
SOURCE
GATE
(Start Trigger)
OUT
5 3 2 3
Counter
Load Values
4 3 21 0 2 10 43 210210