Chapter 4 | Analog Input |
You can connect channel 2 to AI GND (or you can use the internal ground signal; refer to Internal Channels in the
Inserting a grounded channel between signal channels improves settling time because the
Minimize Voltage Step between Adjacent Channels
When scanning between channels that have the same input range, the settling time increases with the voltage step between the channels. If you know the expected input range of your signals, you can group signals with similar expected ranges together in your scan list.
For example, suppose all channels in a system use a
Avoid Scanning Faster Than Necessary
Designing your system to scan at slower speeds gives the
Example 1
Averaging many AI samples can increase the accuracy of the reading by decreasing noise effects. In general, the more points you average, the more accurate the final result. However, you may choose to decrease the number of points you average and slow down the scanning rate.
Suppose you want to sample 10 channels over a period of 20 ms and average the results. You could acquire 250 points from each channel at a scan rate of 125 kS/s. Another method would be to acquire 500 points from each channel at a scan rate of 250 kS/s. Both methods take the same amount of time. Doubling the number of samples averaged (from 250 to 500) decreases the effect of noise by a factor of 1.4 (the square root of 2). However, doubling the number of samples (in this example) decreases the time the
ni.com |