Pulse Measurement
In pulse measurements, the counter measures the high and low time of a pulse on its Gate
input signal after the counter is armed. A pulse is defined in terms of its high and low time,
high and low ticks or frequency and duty cycle. This is similar to the pulse-width
measurement, except that the inactive pulse is measured as well.
You can route an internal or external periodic clock signal (with a known period) to the Source
input of the counter. The counter counts the number of rising (or falling) edges occurring on
the Source input between two edges of the Gate signal.
You can calculate the high and low time of the Gate input by multiplying the period of the
Source signal by the number of edges returned by the counter.
Refer to the following sections for more information about cRIO controller pulse measurement
options:
•
•
Implicit Buffered Pulse Measurement
•
Sample Clocked Buffered Pulse Measurement
Single Pulse Measurement
Single (on-demand) pulse measurement is equivalent to two single pulse-width measurements
on the high (H) and low (L) ticks of a pulse, as shown in the figure below.
Figure 57. Single (On-Demand) Pulse Measurement
Counter Armed
Gate
Source
H L
7 10
7
10
Latched
Value
9
8
7
6
5
4
3
2
1
5
6
4
3
2
1
Implicit Buffered Pulse Measurement
In an implicit buffered pulse measurement, on each edge of the Gate signal, the counter stores
the count in the FIFO. The sampled values will be transferred to host memory using a high-
speed data stream.
The counter begins counting when it is armed. The arm usually occurs between edges on the
Gate input but the counting does not start until the desired edge. You can select whether to
read the high pulse or low pulse first using the
StartingEdge
property in NI-DAQmx.
The figure below shows an example of an implicit buffered pulse measurement.
72
|
ni.com
|
NI cRIO-905x User Manual