LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Gaussian peak Fit FWHM

Highlighted

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
(2,943 Views)
Highlighted

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
(2,907 Views)
Highlighted

C here is the standard deviation

0 Kudos
Message 3 of 6
(2,130 Views)
Highlighted

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
(2,117 Views)
Highlighted

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
(2,115 Views)
Highlighted

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
(2,098 Views)