User manual

Chapter 3 Software Overview
© National Instruments Corporation 3-89 NI-DAQ User Manual for PC Compatibles
For 32-bit counting, use two counters. For 48-bit counting, use three
counters, and so on. The counter configurations for concatenated event
counting are as follows:
Low-order counter configuration
gateModeeither level gating or no gating
edgeModeany value
outTypeTC pulse output type
outPolaritypositive polarity
timebaseany value
cont =1continuous counting
Intermediate counter configuration
edgeModecount rising edges (indicates that the low-order counter
rolled over)
gateModeno gating
outTypeTC pulse output type
outPolaritypositive polarity
timebase =0counts lower order counter output
cont =1continuous counting
High-order counter configuration
edgeModecount rising edges (indicates that the low-order counter
rolled over)
gateModeno gating
outTypeTC-toggled output type (for proper overflow detection)
outPolaritypositive polarity
timebase =0counts lower order counter output
cont =0counter stops on overflow
Period and Continuous Pulse-Width Measurement
Applications
With the proper use of
CTR_Config
,
CTR_Period
, and
CTR_EvRead
,
you can configure a counter to make period or continuous pulse-width
measurements.
To make a period measurement, call
CTR_Config
with gateMode set
to either rising or falling edge-triggered gating (3 or 4). With rising
edge-triggered gating, a counter can measure the time interval