LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a Gaussian Curve Fitting Function for CVI

I'm looking for a curve fitting function or code that I could use to do Gaussian curve fitting for a set of data points.  Probably 15 points or less.

0 Kudos
Message 1 of 3
(3,937 Views)

The functions GaussFit and GaussFitInterval are included with the Advanced Analysis Library that comes with LabWindows/CVI Full Development System. This should do exactly what you need to do.

 

For your reference here are the prototypes of the functions. You can find additional help on how to use them and descriptions on the parameters in the NI LabWindows/CVI Help. 

 

AnalysisLibErrType GaussFit (double arrayX[], double arrayY[], double weight[], int numberOfElements, int fitMethod, double tolerance, double initialCoefficients[], double fittedData[], double *amplitude, double *center, double *standardDeviation, double *residue);

 

AnalysisLibErrType GaussFitInterval (double arrayX[], double arrayY[], double weight[], int numberOfElements, int intervalType, double confidenceLevel, double amplitude, double center, double standardDeviation, double upperBound[], double lowerBound[], double *deltaAmplitude, double *deltaCenter, double *deltaDeviation);

 

Regards,

 

Steven Zittrower

Applications Engineer

National Instruments

http://www.ni.com/support

0 Kudos
Message 2 of 3
(3,920 Views)

I would like to use this function too. How can I get a intesity matrix from a video. I would like to read the position of a laser beam  pointing at a camera.

To do that I need to do intesity fit(Gauss) but first the imagest need to be converted into a matrix assigning a number(corresponding to the intesity) to every pixel of the camera. Do you have some idea or examples how this can be done.

 

 Regards,

 

 Peter

0 Kudos
Message 3 of 3
(3,540 Views)