02-29-2012 03:34 PM
Hey, I'm trying to do some analysis and need to find the slope of a curve. The drivers I have are trying to access the linear fit function but I don't have the pro version so I can't use it. Anyone know of a free workaround VI possibly or any other solution?
Thanks
02-29-2012 04:26 PM
Search the web for algorithms for doing linear fits. Once you find one, you should be able to program it yourself in LabVIEW.
02-29-2012 04:29 PM
Hi acolbourn
The linear fit just implements the least squares algorithm, this is pretty simple.
You can read how this algorithm works here:
http://en.wikipedia.org/wiki/Least_squares
What parameters does the driver call the function with just X and Y as input, and best fit as output?
Regards,
Anders Rohde
02-29-2012 04:47 PM
Also the implemented algorithm and flowchart is explained in the help file
http://zone.ni.com/reference/en-XX/help/371361H-01/gmath/linear_fit/
Regards,
Anders