2.11.11 dfilterfcf(Pro)

Brief Information

Import or export MATLAB cdf file with IIR filter coefficients

Additional Information

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

Command Line Usage

dfilterfcf fcf:= “D:\test.fcf” data:=6:7;
dfilterfcf operation:=exp struct:=sos fcf:= “D:\test.fcf”  data:=4:10 format:=hex;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Operation operation

Input

int

0
Specify the operation mode.

Option list:

  • imp: Import
    Import MATLAB fcf file
  • exp: Export
    Export MATLAB fcf file
Filter Structure struct

Input

int

0
Specify the structure form of IIR filter.

Option list:

  • sos: SOS Matrix
    Export the IIR filter as the second order section(SOS) parameter form.
  • coef: Coefficient
    Export the IIR filter as the numerator coefficients and the denominator coefficients.
  • abcd: State-Space Form
    Export the IIR filter as the state-space form.
MATLAB fcf File Name fcf

Input

string

Specify the path and the name of the fcf file that will be imported/exported.
Filter Model Data data

Input

Range

Specify the filter model data.
Export Format format

Input

int

0
Specify the export format.

Option list:

  • dec: Decimal
    Export the fcf file as the decimal format.
  • bin: Binary
    Export the fcf file as the binary format.
  • hex: Hexadecimal
    Export the fcf file as the binary format

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 export it as an fcf file.

newbook;
impasc fname:=system.path.program$+"samples\signal processing\emg recording.dat";
wks.colsel(2,1);
dfilter -r 2 iy:=2 sample:=2000 wp:=200 ws:=400 abcd:=[<input>]<input>;
dfilterfcf operation:=exp struct:=abcd fcf:=D:\abcd.fcf data:=4:17;

Related X-Functions

dfilter


Keywords:infinite impulse response, signal, remove noise