2.11.10 dfilterapply


Brief Information

Apply IIR filter using specified coefficients

Additional Information

Minimum Origin Version Required: Origin 9.0 SR0. This feature is for OriginPro only.

Command Line Usage

dfilterapply -r 2 iy:=1!(1,2) struct:=0 data:=2!

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input iy

Input

XYRange

<active>

Specify the input signal.

Filter Structture struct

Input

int

0

Specify the structure form of IIR filter.

Option list:

  • 0=sos: SOS Matrix
    Specify the structure form to the second order section(SOS) parameter form.
  • 1=coef:Coefficient
    Specify the structure form to the numerator coefficients and the denominator coefficients.
Filter Model Data data

Input

Range

<unassigned>

Specify the filter model data

Forward-Backward Filtering filtfilt

Input

int

0

Specify whether to perform both forward and backward filtering on the input signal.

Output oy

Output

XYRange

(<input>,<new>)

The output signal after filtering by the IIR filter.

Examples

This example will show how to import emg recording.dat into Origin, then how to use dfilter X-Function to create an IIR filter, and at last how to apply IIR filter using specified coefficients

newbook;
impasc fname:=system.path.program$+"samples\signal processing\emg recording.dat";
dfilter -r 0 iy:=2 sos:=[<input>]<new>;
dfilterapply iy:=1!(1,2) struct:=0 data:=2! oy:=<new>!(<new>,<new>);

Related X-Functions

dfilter


Keywords:infinite impulse response, signal, remove noise