|
The Global Leader of Portable Data Acquisition Solutions
|
|
1-888-714-3272 |
IOtech Events |
| Selection Guides | OEM Zone |
|
Chapter 3 THE ECONOMY OF MULTIPLEXING Solid State Switches vs. Relays Solid-state switches, on the other hand, are much faster than relays and can reach sampling rates of several MHz. However, these devices cant handle inputs higher than 25 V, and they are not well suited for isolated applications. Moreover, solid-state devices are typically limited to handling currents of only one mA or less. Another characteristic that varies between mechanical relays and solid-state switches is called ON resistance. An ideal mechanical switch or relay contact pair has zero ON resistance. But real devices such as common reed-relay contacts are 0.010 W or less, a quality analog switch can be 10 to 100 W, and an analog multiplexer can be 100 to 2,500 W per channel. The ON resistance adds directly to the signal source impedance and can affect the systems measurement accuracy if not compensated. Analog switching devices have another undesirable characteristic called charge injection. This means that a small portion of input-gate drive voltage is coupled to the analog input signal and manifests as a spike in the output signal. This glitch produces measurement errors and can be seen riding on the input signal when the source impedance is too high. A compensating circuit can minimize the effects of charge injection, but the most effective method is to keep source impedance as low as possible to prevent it from developing in the first place. Channel-to-channel cross talk is another non-ideal characteristic of analog switching networks, especially integrated circuit multiplexers. Cross talk develops when the voltage applied to any one channel affects the accuracy of the reading in another channel. Conditions are optimum for cross talk when signals of relatively high frequency and high magnitude such as 4 to 5 V signals are connected to one channel while 100 mV signals are connected to an adjacent channel. High frequency multiplexing also exacerbates cross talk because the signals couple through a small capacitance between switch channels. Low source impedance minimizes the cross talk and eliminates the charge injection. Speed In spite of these negative issues, the advantages of multiplexing outweigh its disadvantages, and it has become a widely used technique to minimize cost without compromising performance. Because the measurement errors are known and specified, they can be compensated at each stage of the data acquisition system to ensure high accuracy at the output. Sequence vs. Software-Selectable Ranges A data acquisition system with a software-selectable range can measure different ranges on different channels (but at a relatively slow rate) with a command to change the gain between samples. But the technique has two problems. First, it is relatively slow. That is, issuing a software command to change the gain of a programmable-gain amplifier (PGA) can take tens or hundreds of ms, lowering the systems sample rate to several Hz. Second, the speed of this sequence is often indeterminate due to variations in PC instruction cycle times. Cycling through the sequence continuously generates samples with an uneven (and unknown) spacing in time. This complicates time-series analysis and makes FFT analysis impossible because its algorithm requires evenly spaced samples. A better implementation hosts a sequencer that sets the maximum acquisition rate and controls both channel selection and associated amplifier gain at random. For example, one widely used data acquisition system running at 100 kHz and 1 MHz uses software selectable channel gain and sequencing (See Figure 3.02). The 100-kHz system provides a 512-location scan sequencer that lets operators use software to select each channel and its input amplifier gain for both the built-in and expansion channels. Each scan group can be repeated immediately or at programmable intervals. The sequencer circuitry overcomes a drastic reduction in the scan rate for expansion channels, a major limitation encountered with many plug-in data acquisition boards. All channels are scanned, including expansion channels, at 100 kHz, (10 µs per channel), (See Figure 3.03). Digital inputs also can be scanned using the same scan sequence employed for analog inputs, enabling the time correlation of acquired digital data to acquired analog data. Such systems permit each scan group (containing up to 512 channel/gain combinations) to be repeated immediately or programmed to intervals of up to 12 hours. Within each scan group, consecutive channels are measured at a fixed 10-µs per channel rate. FUNDAMENTAL CONCEPTS Source Impedance Sample and Hold ADCs Figure 3.05 shows a common scheme for SS&H. Each input signal passes through an instrumentation amplifier (IA), a low-pass filter, and into a sample-and-hold buffer (S/H). When the sample enable line goes high, each S/H samples its input signal and holds it while the multiplexer switches through the readings. This scheme ensures that all the samples are taken within 50 ns of each other, even with up to 256 simultaneous channels connected to a single instrument. Nyquist Theorem Aliasing and Fourier Transforms Conversely, input frequencies of half or more of the sampling rate will also generate aliases. To prevent these aliases, a low-pass, anti-aliasing filter is used to remove all components of these input signals. The filter is usually an analog circuit placed between the signal input terminals and the ADC. Although the filter eliminates the aliases, it also prevents any other signals from passing through that are above the stop band of the filter, whether they were wanted or not. In other words, when selecting a data acquisition system, make certain that the per channel sampling frequency is more that twice the highest frequency intended to be measured. Another example of aliasing is shown in Figure 3.08 for a square wave after passing through a Fourier transform. A Fourier transform is a frequency spectrum display of the sampled data. It shows how much energy at a given frequency is in a particular signal. For the purpose of illustration, assume that the example processes only frequencies under 2 kHz. Ideally, a Fourier transform of a 500-Hz square wave contains one peak at 500 Hz, the fundamental frequency, and another at 1,500 Hz, the third harmonic, which is 1/3 the height of the fundamental. Figure 3.08, however, shows how higher frequency peaks are aliased into the Fourier transforms low-frequency range. The low-pass filter with cutoff at 2 kHz shown in Figure 3.09 removes most of the aliased peaks. When the sampling rate increases to four times the highest frequency wanted, the Fourier transform in the range of interest looks even better. Although a small peak remains at 1 kHz, it is most likely the result of an imperfect square wave rather than an effect of aliasing (See Figure 3.10). Discrete Fourier Transform The sampled data pass through a Fourier transform function to cull out the fundamental and harmonic frequency information. The amplitude of the signal is displayed in the vertical axis, and the frequencies measured are plotted on the horizontal axis. Windowing A finite time interval used for a Fourier Transform also generates spurious oscillations in the transforms display as shown in Figure 3.11. From a mathematical viewpoint, the signal thats instantaneously turned on at the beginning of the measurement and then suddenly turned off at the end of the measurement produces the spurious oscillations. These spurious oscillations are usually eliminated with a function called windowing, that is, multiplying the sampled data by a weighting function. A window function that rises gradually from zero decreases the spurious oscillations at the expense of a slight loss in triggering resolution. Many possible window functions may be used, including Hanning, Hamming, Blackman, Rectangular, and Bartlett (See Figures 3.12, 3.13, and 3.14). Fast Fourier Transforms Standard Fourier Transforms Many standard numerical integration techniques exist for computing SFTs from sampled data. Any other technique selected for the problem at hand probably will be much slower than an FFT of a similar number of points. This is becoming less of an issue, however, as the speed of modern computers increases. Digital vs. Analog Filtering In contrast to digital filters, analog filters can be used for anti-aliasing. But changing the frequency response curves is more difficult because all analog filters introduce some phase error. Settling Time EQN. 3.01 Time Constant
For example, determine the maximum tolerable source impedance for a 100-kHz multiplexer. The time between measurements on adjacent channels in the scan sequence is 10 µs. During time EQN. 3.02 Settling Time
In a typical 16-bit data acquisition system, the internal settling time (Tint) may be 6 µs. The external settling time may then be computed as follows: EQN. 3.03 External Settling Time
For a 16-bit data acquisition system with 100 pF input capacitance, (Cin) and a multiplexer resistance (Rmux) of 100 W, the maximum external resistance is: EQN. 3.04 External Resistance
The simplified examples above do not include effects due to multiplexer charge injection or inductive reactance in the measurement wiring. In actual practice, the practical upper limit on source resistance is between 1.5 k and 2 kW. ...to read the entire 144-page book, order your copy today!
|
![]() |
|
[ IOtech PC-Based Data Acquisition (DAQ) and Instrumentation - PDF Format IOtech PC-based products (USB, PCI, Ethernet, GPIB) and signal conditioning options capture waveforms and measure most physical parameters including temperature, vibration, strain, velocity, acceleration, position, as well as common voltage, current, power, and data logging. IOtech's solutions are used in environments such as |