LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Gaussian peak Fit FWHM

Hi

 

I am using the Gaussian Peak Fit Vi and I want to calculate the FWHM of the fitted curve. What is the best way to do this. Thanks

0 Kudos
Message 1 of 6
(5,083 Views)

Hi Zepp 

 

I'm not too familiar with the Gaussian function, however after some quick research I've seen that the:

 

FWHM = 2 * (sqrt (2*ln 2)) * C 

 

Where I believe C is the centre. 

 

To build this you can either use a math script node or build it using the correct function blocks. I've attached a VI and VI snippet that uses both of these methods. I haven’t wired up the inputs of the Gaussian Function as I am quite unfamiliar with it. 

 

Let me know if this is what you were looking for. 

 

Many thanks.

 

Dan

Daniel Harryman MEng
CLA, CPI
Download All
0 Kudos
Message 2 of 6
(5,047 Views)

C here is the standard deviation

0 Kudos
Message 3 of 6
(4,270 Views)

Almost correct: C is not the center, it is standard deviation.

PS. for single variable, single line formulas it is better to use expression node.

0 Kudos
Message 4 of 6
(4,257 Views)

If you search for FWHM Gaussian, you can find that the Full Width at Half Maximum (which "answer analysis" should tell you will be related to the Standard Deviation, usually expressed as a lower-case sigma, σ, is

 

FWHM.png

 

Bob Schor

0 Kudos
Message 5 of 6
(4,255 Views)

Hi Alexander, 

 

I appreciate the feedback. Silly mistake on my part.  Kind of makes me want to go back and check a few of my older forum posts and see if I'm any wiser now or just older haha. 

 

Thanks,

 

Daniel

 

Daniel Harryman 

Certified LabVIEW Devloper

Electronics Engineer

ISIS Neutron & Muon Source

Accelerator Diagnostics Development

Science & Technology Facilities Council

Rutherford Appleton Laboratory

Daniel Harryman MEng
CLA, CPI
0 Kudos
Message 6 of 6
(4,238 Views)