02-03-2010 07:16 AM
Hello,
My main Vi captures data I sent to a XY graph
I would like to smooth the curve before and after ("not ok" on picture) the main Peak ("ok" on picture)
I searched on ni board and didn't find anything I could use with Labview 6i
Does anyone have a solution ?
Thanks in advance
see attached simple vi with data and graph
Solved! Go to Solution.
02-03-2010 08:05 AM
There are several options:
You will need to convert your data from XY to waveform to get any of these to work. If you data are evenly spaced, this is pretty easy. If they are not, you will need to do some sort of interpolation. Or you can simply ignore the fact that you have unevenly sampled data, convert to a waveform, smooth, then convert back.
A word of caution. The "not OK" portion of your waveform appears to have significant features. Putting on my physicist hat for a moment, are you sure you want those peaks gone? This is also true of the myriad of small peaks around the main one. Be careful. A better approach might be removing the gain differences so you have a flat background (region about 1060nm - 1080nm), then trying to model the peaks of interest. You could also take several data runs and average them to get rid of some of your noise, provided your X-scale is stable. But there really does not appear to be a lot of noise on that data. Most of it appears to be significant.
02-03-2010 08:24 AM
Thanks for you reply
It's gonna be a hard work for me but I will give a try