Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
LabVIEW-Measurements.pdf
Скачиваний:
61
Добавлен:
29.05.2015
Размер:
3.37 Mб
Скачать

Chapter 16

Digital Filtering

The frequency range that is passed through the filter is known as the passband (PB) of the filter. An ideal filter has a gain of one (0 dB) in the passband so that the amplitude of the signal neither increases nor decreases. The stopband (SB) corresponds to that range of frequencies that do not pass through the filter at all and are attenuated. The passband and the stopband for the different types of filters are shown in Figure 16-2.

amplitude

PB SB

freq

fc Lowpass

amplitude

 

SB

 

 

PB

 

amplitude

 

SB

 

 

 

PB

 

 

SB

amplitude

 

PB SB

 

 

 

PB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

freq

 

 

 

 

 

 

 

 

 

 

freq

 

 

 

 

 

 

 

 

 

 

 

freq

 

 

 

fc

 

 

fc1

 

 

 

 

 

fc1

 

 

 

 

 

 

 

 

 

 

 

fc2

 

 

fc2

 

 

Highpass

 

 

 

 

Bandpass

 

 

Bandstop

Figure 16-2. Passband and Stopband

Note that while the lowpass and highpass filters have one passband and one stopband, the bandpass filter has one passband and two stopbands, and the bandstop filter has two passbands and one stopband.

Practical (Nonideal) Filters

Ideally, a filter should have a unit gain (0 dB) in the passband, and a gain of zero (–infinity dB) in the stopband. However, in a real implementation, not all of these criteria can be fulfilled. In practice, there is always a finite transition region between the passband and the stopband. In this region, the gain of the filter changes gradually from one (0 dB) in the passband to zero (–infinity dB) in the stopband.

LabVIEW Measurements Manual

16-4

www.ni.com

Chapter 16

Digital Filtering

The Transition Band

The following diagrams show the passband, the stopband, and the transition region (TR) for the different types of nonideal filters. Note that the passband is now the region where the frequency range within which the gain of the filter varies from 0 dB to –3 dB.

Lowpass

 

Highpass

 

pass

 

 

pass

 

stop

 

stop

Bandpass

 

Bands top

 

 

pass

pass

pass

stop

stop

 

stop

 

 

Transition Regions

 

Figure 16-3. Nonideal Filters

Passband Ripple and Stopband Attenuation

In many applications, you can allow the gain in the passband to vary slightly from unity. This variation in the passband is called the passband ripple and is the difference between the actual gain and the desired gain of unity. The stopband attenuation, in practice, cannot be infinite, and you must specify a value with which you are satisfied. Both the passband ripple and the stopband attenuation are measured in decibels (dB), defined by the equation:

Ao( f) dB = 20log ------------

Ai( f)

where log denotes the base 10 logarithm, and Ai(f) and Ao(f) are the amplitudes at a particular frequency f before and after the filtering, respectively.

© National Instruments Corporation

16-5

LabVIEW Measurements Manual

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]