LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D general polynomial fit


@paul_a_cardinale wrote:

I wrote this many years ago.  You might find it helpful.


Did you ever implement it in LabVIEW?

0 Kudos
Message 11 of 16
(2,944 Views)

Thank you for reply.

 

I substracted a mean value from Z. You are right that the error is small in the middle but is about 30% at the edges and it seems to me that it should/must be much better.

 

 

 

I'v done also polynomial fitting with your functions.

 

 

 

polinomial fitting work fine for this measured points but sometimes I can not fit easily some measurement.

 

I thought that griddata can work much better, specially for low N, since I need to send this interpolation point to EEPROM and have good accuracy of my device.

I attach a VI.

 

 

If you have more comment you are welcome.

 

Regards

 

Sasa

 

 

0 Kudos
Message 12 of 16
(2,934 Views)

Here it is.  I haven't looked at this in a long time; don't remember if it had any quirks.

0 Kudos
Message 13 of 16
(2,918 Views)

hello again, i know its been 5 years from your last post

but i would like to ask you about the  3DPolyFiArrayOutput VI  how can i adapt it to a 2d array version with random numbers. ( i have changed the dimensions of the array and the intensity graph axis)  but i only get a blank graph ....

 

here it is my vi with changes..

 

thanks in advance!Smiley Happy

VI.JPG

0 Kudos
Message 14 of 16
(2,519 Views)

As a first step, place indicators on all error output. You would immediately see that the general linear fit produces the following error:


Error -20037 occurred at an unidentified location

Possible reason(s):

Analysis: (Hex 0xFFFFB1BB) The number of data points in the Y value array must be greater than the order value.


For a second order 2D fit, you need at least 6 rows of data, so increase N of the outer loop accordingly.

 

0 Kudos
Message 15 of 16
(2,513 Views)

hello again

can you tell me altenbach for this bilinear interpolation subvi which mathematical equation did you use ?

Capture.JPG

 

 

 

0 Kudos
Message 16 of 16
(2,475 Views)