Analysis : Signal Processing : IIR Filter
Create and apply an IIR filter
Minimum Origin Version Required: Origin 9.0 SR0
This feature is for OriginPro only.
dfilter method:=cheby1 order:=5 sample:=1000 wn:=50 filtfilt:=1 coef:=[<input>]<new>;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input Signal | iy |
Input XYRange |
|
Specify the input signal. |
Response Type | type |
Input int |
|
Specify the response type of filter.
Option list:
|
Method | method |
Input int |
|
Specify the filter design method.
Option list:
|
Filter Order | order |
Input double |
|
Specify the filter order. |
Unit | unit |
Input int |
|
Specify the unit for the frequency settings.
Option list:
|
Sample Frequency (Fs) | sample |
Input double |
|
Specify the sampling frequency, available when the Unit is Hz. |
Cutoff Frequency (Fc) | wn |
Input double |
|
When Filter Order is specified (not minimum), this variable is used to specify the cutoff frequency for the low pass and high pass. |
Cutoff Frequency 1 (Fc1) | wn1 |
Input double |
|
When Filter Order is specified (not minimum), this variable is used to specify the first cutoff frequency for the band pass and band stop. |
Cutoff Frequency 2 (Fc2) | wn2 |
Input double |
|
When Filter Order is specified (not minimum), this variable is used to specify the second cutoff frequency for the band pass and band stop. |
Pass Frequency | wp |
Input double |
|
When Filter Order is minimum, this variable is used to specify the pass frequency for the low pass and high pass. |
Stop Frequency | ws |
Input double |
|
When Filter Order is minimum, this variable is used to specify the stop frequency for the low pass and high pass. |
Pass Frequency 1 | wp1 |
Input double |
|
When Filter Order is minimum, this variable is used to specify the first pass frequency for the band pass and band stop. |
Stop Frequency 1 | ws1 |
Input double |
|
When Filter Order is minimum, this variable is used to specify the first stop frequency for the band pass and band stop. |
Pass Frequency 2 | wp2 |
Input double |
|
When Filter Order is minimum, this variable is used to specify the second pass frequency for the band pass and band stop. |
Stop Frequency 2 | ws2 |
Input double |
|
When Filter Order is minimum, this variable is used to specify the second stop frequency for the band pass and band stop. |
Passband Ripple | rp |
Input double |
|
Specify the pass band ripples in dB. |
Stopband Attenuation | rs |
Input double |
|
Specify the stop band attenuation in dB. |
Forward-Backward Filtering | filtfilt |
Input int |
|
Specify whether to perform both forward and backward filtering on the input signal. |
SOS Matrix | sos |
Output ReportData |
|
Output the designed IIR filter as the second order section (SOS) parameters form. |
Zeros Poles and Gain | zpk |
Output ReportData |
|
Output the designed IIR filter as the zero-pole-gain form. |
State-Space Form | abcd |
Output ReportData |
|
Output the designed IIR filter as the state-space form. |
Coefficients | coef |
Output ReportData |
|
Output the designed IIR filter as the numerator coefficients and the denominator coefficients. |
Output Signal | oy |
Output XYRange |
|
The output signal after filtering by the designed IIR filter. |
This example will show how to perform high pass with Butterworth method.
For more information, please refer to our User Guide.
Keywords:infinite impulse response, signal, remove noise