LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

baseline correction

Hello,

I have as input a set of 16 spectra.

I would like to correct automatically the baseline.

I did an attempt that I attached here and I hope I can get your help to make it work properly.

My objective is to use the vi to correct the baseline for similar spectra without the need to adjust manually the parameters of the correction.

Thanks,

Zied

0 Kudos
Message 1 of 4
(3,004 Views)

Hi Zied,

 

I would like to correct automatically the baseline. I did an attempt that I attached here

And what is your problem?

Where do you need help?

Right now you calculate a BSpline fit for each spectrum: is this your "baseline"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,998 Views)

Hi Gerd,

I attached an updated Vi where I plotted the spectra. you will notice that the spctra have different baseline especially for the first 35 points.

My goal is to have a method that can correct automatically the baselines in order to compare the spectra between each other.

I think I have something missing inside the for loop.

Thanks,

Zied

0 Kudos
Message 3 of 4
(2,950 Views)

Hi ziedhosni,

 

It seems like this is an artifact of your data, but if you wanted to force these down you could potentially put a high pass filter from 0 to 35 to filter out everything but the smaller peaks.

Tyler C.
Technical Support Engineering
National Instruments
0 Kudos
Message 4 of 4
(2,933 Views)