Dfp2 option – Teledyne LeCroy DFP2 - Digital Filter Package 2 User Manual
Page 19

DFP2 Option
DFP2-OM-E Rev A
ISSUED: November 2003
17
Example 2: Creating an IIR Filter Coefficient File Using Mathcad
Note: This example uses the Mathcad Signal Processing Extension Pack.
order
6
:=
fcutoff
.1
:=
A
iirlow butter order
(
) fcutoff
,
(
)
:=
A
0.083
0.166
0.083
1
1.404
−
0.736
0.067
0.135
0.067
1
1.143
−
0.413
0.061
0.122
0.061
1
1.032
−
0.276
⎛
⎜
⎜
⎝
⎞
⎠
=
x
0 .001
,
.5
..
:=
0
0.1
0.2
0.3
0.4
0.5
0
0.5
1
1
0
gain A x
,
(
)
0.5
0
x
Now create an ASCII file containing the coefficients: IirFilter.txt
Note: The diskette icon, the file name, and the "A" below it are the representation of a Mathcad "File Output" component.
It is inserted by selecting Insert, Data, File Output. You must specify the file name ("IirFilter.txt" in the example) and fill in
the variable name that is the source of the data ("A" in the example). Be sure to specify a complete path for the file.