| |
Exim
Ensemble
Quantum
JitLab
PCScope
Modules:
SigGen
SoundImp
SoundExp
Plot
Meas
Stats
FileImp
TextImp
TextExp
Filter
FFT
DspWnd
Visa
Arithmetic
Plugins:
CodeEditor
SchEditor
Wizards:
JitLab
Help:
Getting Started
Examples:
PC Oscilloscope
Signal Generator
Amp. Modulation
Freq. Modulation
Phase Modulation
AM, FM & PM
PAM
PWM
Text Imp. & Exp.
|
|
Filter: FIR & IIR Digital Filters
The Filter module supports FIR (Finite Impulse Response) & IIR
(Infinite Impulse Response) digital filters. The filters can be cascaded
multiple times to generate the desired frequency response.
The filter module has many advanced features.
- Supports continuous or non-continuous data streams.
- Filter bypass.
- Filter/stage gain.
- Instead of cascading identical multiple filter stages manually, setting stages setting achieves the same effect.
- Built in decimator.
To use this module, enter the filter coefficients. The default filter
coefficients are for an all pass filter. If you don't want to use the advanced settings
or don't understand them, then keeping their default values won't interfere with the
filter operation.
The Filter module supports the graphical & programming
interfaces as explained below.
Graphical Interface
Ports
In
Data signal input.
Out
Filtered data output.
|
|
Schematic Symbol
|
Settings
Filter Type [Dropbox]
The Filter Type dropbox is a list of available digital filter types.
Choose from FIR or IIR.
FIR Filter (Using Frequency Response)
|
Window [Dropbox]
Select the window type. The rectangular window gives the fastest rolloff for a given order.
Frequency Type [Dropbox]
Choose from Digital or Analog.
If Digital is selected, the passband frequency must be within 0 and 0.5.
If Analog is selected, the passband frequency is in Hz and can be any positive value.
Passband From [Textbox]
Specify the passband start frequency. For low pass filters, this field is not available
and is assumed to be 0.
|
|
 |
Passband To [Textbox]
Specify the passband end frequency. For high pass filters, this field is not available
and is assumed to be infinity.
Response Type [Dropbox]
Choose from Low Pass, High Pass or Band Pass.
If Low Pass is selected, all frequencies below f2 are passed and above are rejected.
If High Pass is selected, all frequencies below f1 are rejected and above are passed.
If Band Pass is selected, all frequencies between f1 and f2 are passed and others are rejected.
Filter Order [Textbox]
Enter the desired filter order. A higher filter order provides a frequency response
more closer to the ideal, but takes longer to compute.
|
FIR Filter (Using Coefficients)
|
Delimiter [Dropbox]
The Delimiter dropbox is a user-defined separator to define the
coefficient list. Select from comma, tab, newline, space or enter your
own.
Apply [Button]
To apply the entered coefficients, click on the Apply button.
Cancel [Button]
To cancel the changes made to the coefficients, click on the Cancel
button.
|
|
 |
FIR Coeffs [Textbox]
Enter or paste the FIR filter coefficients in the FIR Coeffs textbox, separated by the selected
delimiter. This field is visible only if FIR filter type is selected.
The FIR filter equation is:
y[n] = a0x[n] + a1x[n-1] + a2x[n-2] + a3x[n-3] + ...
The coefficients should be entered in the following order:
a0, a1, a2, ... , an-1, an
|
IIR Filter (Using Coefficients)
|
Delimiter [Dropbox]
The Delimiter dropbox is a user-defined separator to define the
coefficient list. Select from comma, tab, newline, space or enter your
own.
Apply [Button]
To apply the entered coefficients, click on the Apply button.
Cancel [Button]
To cancel the changes made to the coefficients, click on the Cancel
button.
|
|
 |
X-Coeffs [Textbox]
Enter or paste the IIR filter X-coefficients in the X-Coeffs textbox, separated by the selected
delimiter. This field is visible only if IIR filter type is selected.
| The IIR filter equation is: |
|
y[n] = a0x[n] |
|
+ a1x[n-1] + a2x[n-2] + a3x[n-3] + ... |
|
+ b1y[n-1] + b2y[n-2] + b3y[n-3] + ... |
The coefficients should be entered in the following order:
a0, a1, a2, ... , an-1, an
Y-Coeffs [Textbox]
Enter or paste the IIR filter Y-coefficients in the Y-Coeffs textbox, separated by the selected
delimiter. This field is visible only if IIR filter type is selected.
The coefficients should be entered in the following order:
1, b1, b2, ... , bn-1, bn
Note that the first coeffecient is almost always 1.
|
Advanced Options
|
ByPass [Toggle Button]
Click on ByPass button to bypass the filter. This switches OFF the
filtering behavior and lets the data pass through as it is. It is useful for debugging purposes.
Continuous Mode [Checkbox]
Check Continuous Mode checkbox if the data input to the filter in
each new acquisition is time continuous data, that is, there is no
discontinuity in the data. Uncheck this box if data from each new
acquisition is not time continuous. For example, if the data source is a
file or an oscilloscope, the continuous mode should be unchecked. If the
data source is the SigGen Module, a sound card, or a real time DAS acquisition card, then
the continuous mode should be checked.
|
|
 |
Stages [Textbox]
Enter the number of stages of the filter.
This is a very powerful feature of the Filter Module.
The default value of this field is one, meaning that the filtering will be done once only.
Should you need two identical filters, then instead of putting two filters,
just use a single filter and increment the stages to two.

The above diagram should make it clear. If filter 1 and filter 2 are same, then it can
be replaced by a single filter with stages set to 2. Similarly, setting stages=n is equivalent to
n number of similar cascaded stages. This makes it easy to maintain the workspace and also
results in substantial processing speed up.
Stage Gain [Textbox]
You can change the filter gain by adjusting the stage gain parameter.
For example, if the inherent gain of the filter is 2 due to the filter coefficients,
setting stage gain to 0.5 will make the overall filter gain to unity.
Note that this parameter affects each filter stage.
Filter Gain [Textbox]
This gain parameter doesn't affect the individual filter stages and is used to set the
overall filter chain gain.
|
|