5-2
8
|
ni.com
Chapter 5
Counters
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 also can specify the
active edge of the Source input (rising or falling).
The counter can begin the pulse train generation as soon as the counter is armed, or in response
to a hardware Start Trigger. You can route the Start Trigger to the Gate input of the counter.
You also can use the Gate input of the counter as a Pause Trigger (if it is not used as a Start
Trigger). The counter pauses pulse generation when the Pause Trigger is active.
Figure 5-31 shows a continuous pulse train generation (using the rising edge of Source).
Figure 5-
3
1.
Continuous Pulse Train Generation
Continuous pulse train generation is sometimes called frequency division. If the high and low
pulse widths of the output signal are
M
and
N
periods, then the frequency of the Counter
n
Internal Output signal is equal to the frequency of the Source input divided by
M
+
N
.
For information about connecting counter signals, refer to the
section.
Buffered Pulse Train Generation
The cDAQ chassis counters can use the FIFO to perform a buffered pulse train generation. This
pulse train can use implicit timing or sample clock timing. When using implicit timing, the pulse
idle time and active time changes with each sample you write. With sample clocked timing, each
sample you write updates the idle time and active time of your generation on each sample clock
edge. Idle time and active time can also be defined in terms of frequency and duty cycle or idle
ticks and active ticks.
Note
On buffered implicit pulse trains the pulse specifications in the DAQmx
Create Counter Output Channel are ignored so that you generate the number of pulses
defined in the multipoint write. On buffered sample clock pulse trains the pulse
specifications in the DAQmx Create Counter Output Channel are generated after the
counters starts and before the first sample clock so that you generate the number of
updates defined in the multipoint write.
S
OURCE
OUT
Co
u
nter Armed
Содержание cDAQ-9179
Страница 1: ...cDAQ 9179...