5-30
|
ni.com
Chapter 5
Counters
Continuous Buffered Sample Clocked Pulse Train Generation
This function generates a continuous train of pulses with variable idle and active times. Instead
of generating a set number of data samples and stopping, a continuous generation continues until
you stop the operation. Each point you write specifies pulse specifications that are updated with
each sample clock. When a sample clock occurs, the current pulse finishes generation and the
next pulse uses the next sample specifications.
Frequency Generation
You can generate a frequency by using a counter in pulse train generation mode or by using the
frequency generator circuit, as described in the
section.
Using the Frequency Generator
The frequency generator can output a square wave at many different frequencies. The frequency
generator is independent of the four general-purpose 32-bit counter/timer modules on the cDAQ
chassis.
Figure 5-34 shows a block diagram of the frequency generator.
Figure 5-34.
Frequency Generator Block Diagram
The frequency generator generates the Frequency Output signal. The Frequency Output signal
is the Frequency Output Timebase divided by a number you select from 1 to 16. The Frequency
Output Timebase can be either the 20 MHz Timebase, the 20 MHz Timebase divided by 2, or
the 100 kHz Timebase.
The duty cycle of Frequency Output is 50% if the divider is either 1 or an even number. For an
odd divider, suppose the divider is set to D. In this case, Frequency Output is low for (D + 1)/2
cycles and high for (D - 1)/2 cycles of the Frequency Output Timebase.
Figure 5-35 shows the output waveform of the frequency generator when the divider is set to 5.
Figure 5-35.
Frequency Generator Output Waveform
100 kHz Time
bas
e
20 MHz Time
bas
e
Fre
qu
ency
O
u
tp
u
t
Time
bas
e
FREQ OUT
Divi
s
or
(1–16)
Fre
qu
ency Gener
a
tor
÷
2
Fre
qu
ency
O
u
tp
u
t
Time
bas
e
FREQ OUT
(Divi
s
or = 5)