07-25-2012 10:05 AM
I am using the General Linear Fit to fit a plane to a set of X,Y,Z data. I would like to perform this same calculation as the data is being collected and was hoping the General LS Linear Fit PtbyPt VI would be helpful. However, I don't understand the data inputs for this VI. Fot eh General Linear Fit VI, H is a 2-dimensional array with dimensions m*n (where m is the number of Z data points I have and n is the number of fitting parameters: 3 in my case - b0, b1, b2 - according to the equation Z = b0 + b1*X + b2*Y). For the PtbyPt VI, if I wire a 2D array to the H input, the resulting wire is broken, claiming that the input should be 1D. In that case, how should H be formatted.
Thanks in advance.
07-25-2012 05:46 PM
Hello
The PtbyPt functions are working on one and only one point you provide them. You can't give them the whole array. Look at the VI I attached, I think it should explain the problem (sorry for a little mess in the block diagram, I've made it from General Linear Fit example and didn't bother to clean it up).