LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

noise removal of a sinc

OK, here you go. This should do what you want. 😄
 
 
0 Kudos
Message 11 of 14
(943 Views)
Thanks a lot.  I see what you did now.  This has helped me understand how to go about solving my ultimate goal, fitting/removing noise from any assortment of data.  Initially, I was only trying to remove noise from a function that was known (sinc).  I've used this sinc program, and applied some of its components in the (simple_fit.vi), which I believe is a Levenberg-Marquardt example.  This is located on Page 01,  reply 08, or at the bottom of this discussion... http://forums.ni.com/ni/board/message?board.id=170&message.id=131168&requireLogin=False
 
I've managed to get the same functionality out of this program, as I have the curve_fitting.vi.  The only problem here that I ran into, is that the program will not find a proper fit, unless the range is much smaller than the X-Axis/Y-Axis values.  For example, in the linked vi above, wavelengthaxis.txt << (bloodspectrum.txt || bloodwithnoise.txt).  But other than that, I think the program is running how I expected.  Although I follow a majority of the logic, there are still bits and pieces of those sub.vis that are elluding me.  Nevertheless, if you have any sort of final suggestions on this topic of fitting sets of data, feel free to shoot.  But other than that, thanks for all the help.
0 Kudos
Message 12 of 14
(934 Views)
Yes, this is one of my ancient programs that worked around some of the shortcomings in older LabVIEW versions. It is somewhat buggy (yes there are obvious bugs in the code, however, they don't cause problems with the fitting ;)).
 
For easy code manitenance, please use the stock LabVIEW 8.0 version, it will do everything you need. Let me know if you run into any problems. 😄
0 Kudos
Message 13 of 14
(928 Views)
More specifically:
 
Instead of using my old code, use the polymorphic "Nonlinear Curve Fit" from the "math...fitting" palette of LabVIEW 8.0 and "select Lev-Mar: VI" mode. 😄
Message 14 of 14
(924 Views)