National Instruments M Series User Manual page 68

Multifunction i/o modules and devices
Hide thumbs Also See for M Series:
Table of Contents

Advertisement

Chapter 4
Analog Input
M Series devices use AI Sample Clock (ai/SampleClock) and AI Convert Clock
(ai/ConvertClock) to perform interval sampling. As Figure 4-13 shows, AI Sample Clock
(ai/SampleClock) controls the sample period, which is determined by the following equation:
Channel 0
Channel 1
AI Convert Clock controls the Convert Period, which is determined by the following equation:
Typically, this rate is the sampling rate for the task multiplied by the number of channels in the
task.
Note
The sampling rate is the fastest you can acquire data on the device and still
achieve accurate results. For example, if an M Series device has a sampling rate of
250 kS/s, this sampling rate is aggregate—one channel at 250 kS/s or two channels
at 125 kS/s per channel illustrates the relationship.
Posttriggered data acquisition allows you to view only data that is acquired after a trigger event
is received. A typical posttriggered DAQ sequence is shown in Figure 4-14. The sample counter
is loaded with the specified number of posttrigger samples, in this example, five. The value
decrements with each pulse on AI Sample Clock, until all desired samples have been acquired.
Figure 4-14. Posttriggered Data Acquisition Example
AI Start Trigger
AI Sample Clock
AI Convert Clock
Sample Counter
Pretriggered data acquisition allows you to view data that is acquired before the trigger of
interest, in addition to data acquired after the trigger. Figure 4-15 shows a typical pretriggered
DAQ sequence. AI Start Trigger (ai/StartTrigger) can be either a hardware or software signal. If
4-22 | ni.com
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
1/Sample Period = Sample Rate
Figure 4-13. Interval Sampling
Convert Period
Sample Period
1/Convert Period = Convert Rate
4
3
2
1
0
4

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents