3-30 | ni.com
Chapter 3 Counters
Figure 3-34. Samples of Counter Output Applications
Generating a Series of One or More Pulses
The NI 6612 can generate a series of one or more pulses, where each pulse is the same duration.
Create Channel
You specify the characteristics of the pulses when you create the channel. You can specify the
pulses in terms of time, ticks of the timebase clock, or in terms of frequency and duty cycle.
Time
To specify the pulses in terms of time, use the DAQmx Create Channel (CO Pulse-Generation
Time) VI or function. Figure 3-35 shows how to specify the pulses in terms of time.
Figure 3-35. Specifying Pulses
In the first waveform, the signal begins in a low IdleState. The pulse generation begins by calling
the Start Task VI or function. After waiting for InitialDelay seconds, the output goes high for
HighTime seconds and then low for LowTime seconds. The output then goes high and low again
until the desired number of pulses have been generated.
The second waveform shows an example where the IdleState is high.
Ticks
A tick is one period of the Counter Timebase. By default, the timebase is 100 MHz, so a tick is
10 ns. To specify the pulses in terms of ticks, use the DAQmx Create Channel
(CO Pulse-Generation Ticks) VI or function.
A Series of pulses B Periodic waveform C Complex waveform or timing pattern
A: Output
B: Output
C: Output
Start Task
Idle State = Low
Initial Delay
High
Time
Low Time
High
Time
Low Time
Start Task
Idle State = High
Initial Delay
Low Time
High
Time
Low Time
High
Time