LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I extract a gaussian function out of a spectrum which has five gaussain functions....

Just for completeness, heres how you would fit the data using the general linear filt, which assumes that only the amplitudes are unknown.

(There was a formula error in my previous version, whcih I have corrected above).

 

Also here, you can add more gaussians by simply adding rows to the array of clusters. As you can see, the fit is not great.

I also show the component spectra.

 

Download All
0 Kudos
Message 21 of 29
(3,086 Views)

That is perfectly working now. Thank you very much. but is it possible to plot `data, best fit, the final gauss functions and original spectrum minus final gauss functions`` rather than ``data, best fit and guess´` ?

0 Kudos
Message 22 of 29
(3,068 Views)

@zola1024 wrote:

 but is it possible to plot `data, best fit, the final gauss functions and original spectrum minus final gauss functions`` rather than ``data, best fit and guess´` ?


Yes, everything is possible.

0 Kudos
Message 23 of 29
(3,061 Views)

Try this:

 

 

Download All
Message 24 of 29
(3,048 Views)

Just on a sidenote, notice that my gaussians are normalized for unit height, independent of width. It would typically be more reasonable to normalize for unit area. It would be trivial to adjust the model function accordingly.

0 Kudos
Message 25 of 29
(2,981 Views)

Hello,

 

would it be possible to convert your multiple gaussian fit vi to labview version 9.0.1.

 

Unfortunately i'm not able to open it.

 

Thanks in advance.

 

 

0 Kudos
Message 26 of 29
(2,938 Views)

grimph1 wrote:

would it be possible to convert your multiple gaussian fit vi to labview version 9.0.1.


Try this...

 

 

0 Kudos
Message 27 of 29
(2,929 Views)

Thank you very much.

 

Unfortunately i receive an error code 3 concerning a problem while frontpanel is loaded.

 

Can you help ?

0 Kudos
Message 28 of 29
(2,923 Views)

Sorry, I have no way of testing the downconverted VI in LV2009. Also error 3 seems very odd. Did you extract the zip file first?

What is the full error message?

 

Here's another save, this time with slightly different options. See if this works better....

0 Kudos
Message 29 of 29
(2,917 Views)