08-22-2007 10:24 AM
08-22-2007 10:25 PM - edited 08-22-2007 10:25 PM
Hi, Alias77,
Thanks for the VI. It seems that you saved the input data and filter coef to some text files. Could you please attach the files as well? Thanks!
And I try a bit butterworth filter in LabVIEW and Matlab with your specification. The coefficients from LV and Matlab are quite close. Please see the attached VI for details.
What does "unstable" mean in your post? Could you explain a bit more?
帖子被DSPmchen在08-22-2007 10:28 PM时编辑过了
08-23-2007 10:22 AM - edited 08-23-2007 10:22 AM
Message Edited by Alias77 on 08-23-2007 10:28 AM
Message Edited by Alias77 on 08-23-2007 10:29 AM
08-23-2007 10:52 AM - edited 08-23-2007 10:52 AM
Message Edited by Alias77 on 08-23-2007 10:59 AM
02-25-2008 07:45 AM - edited 02-25-2008 07:47 AM
Hello all,
I too have that problem and on top of that, Labview keeps changing the last few numbers of my coefficients that i put in *from Mathlab*.
This creates the difference between the Mathlab and Labview filter *Butterworth Highpass 0,1Hz Cut off, 5th Order at 1000Hz Sampling* and possibly the unstable filter from Mathlab into Labview.
I experimented with removing some SOS coefficients decimals in the Labview filter and this works until i reput them into the filter bundle. At that point, Labview creates some numbers *up to the E-17th decimal* which i haven`t asked for nor want to have.
As an answer to "More Significant Numbers" , the Labview filter only needed 6 till 9 decimals to be stable *depending on the order etc*. But as i said above, Labview adds or changes some of these numbers so my findings are not 100% accurate.
Can somebody explain me why this happens and how to cancel the creation of those numbers?
Greets,
MstrES
02-26-2008 05:15 PM
02-27-2008 02:14 AM
02-27-2008 03:30 AM
02-27-2008 04:23 AM
Hello Strong@NI,
I`m using/The generated filter is using double precision floating point. One of the coefficients from the Matlab filter i put in Labview is for example -4,997966718532833. When i put this in the array-controle, it says -4,99796671853283314. I just found it strange that the last 3 numbers would be 314 instead of 300 or 299 for that matter, but apparently it still is normal behavior from a floating point.
02-27-2008 07:55 PM - edited 02-27-2008 08:02 PM