Scott Williams wrote:
>
> I am trying to automate some data analysis for a large number of Raman
> spectra, and would like the option of using a Gaussian or Lorentzian peak
> fit (the included VI is some sort of a parabolic fitting algorithm). Is
> there a way to do this with any of the VIs in the full development system
> (or has anyone already made such a VI), or am I going to need to just write
> some C code and use the code interface node?
On my web site you can download a routine that makes a fit to a
Gaussian peak. It first estimates the width, offset, amp., etc, so that
the non-linear fit has a chance to converge. You may be able to
generalize this to do a Lorentzian as well.
Go to www.originalcode.com, then click on Example Code, Utilities,
and Downloads.
Dave
-------------------------------------------------------------
David Thomson 303-499-1973 (voice and fax)
Original Code Consulting dthomson@originalcode.com
www.originalcode.com
National Instruments Alliance Program Member
-------------------------------------------------------------
Research Scientist 303-497-3470 (voice)
NOAA Aeronomy Laboratory 303-497-5373 (fax)
Boulder, Colorado dthomson@al.noaa.gov
-------------------------------------------------------------