LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3d scattered data interpolation

Hi

 

How to interpolate 3D scattered data

Input is independent X,Y,Z array and Xi,Yi dependent variable, now want to compute Zi from interpolation function.

 

Sample dataset VI is attache for understanding....

0 Kudos
Message 1 of 7
(3,556 Views)

Hi,

 

I am really bad at statistics so my question my seem silly, but what is the (mathematical ?) relation between Xi, Yi and Zi ? A bit more information would be helpful.

CLAMaxime -- Kudos are a great way to say thank you
0 Kudos
Message 2 of 7
(3,545 Views)

Hi lionheart,

 

what about using Interpolate2DScattered?

check.png

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 7
(3,539 Views)

Hi GredW

thanks for replay.

 

Interpolate2DScattered.vi takes to much time to execute. I will need to create grid as following picture and run time is about 40 minutes with for loop in parallelism mode ..

I need faster algorithm...

Download All
0 Kudos
Message 4 of 7
(3,486 Views)

Hi lionheart,

 

I need faster algorithm...

For a start I would use smaller arrays here! Do you really need to interpolate giant 2D arrays?

You should have noted in your first post you want to interpolate 2D arrays: just use a different polymorphic version of Interpolate2DScattered:

check.png

- did you notice what I have done with your two for loops generating Xi and Yi? I did this for a reason…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(3,480 Views)

Hi GerdW

 

I was not aware of having 2D polymorphic instance of that VI. I have to decimate at least 50 value instead of 500

 

Yes I need that giant 2d array to interpolate. I will be having similar second dataset.which will be interpolated ,

For both dataset X,Y will be same and Z1-Z2 used for calculation..

 

0 Kudos
Message 6 of 7
(3,471 Views)

Hi lionheart,

 

I was not aware of having 2D polymorphic instance of that VI.

So you did not read the LabVIEW help for this function?

 

I have to decimate at least 50 value instead of 500

That's your decision.

More data means more processing time and more memory demands!

 

Yes I need that giant 2d array to interpolate. I will be having similar second dataset.which will be interpolated , For both dataset X,Y will be same and Z1-Z2 used for calculation..

You may use different methods to calculate interpolation coefficients - and you could use even better suited presumptions. See Christians group about interpolation

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 7
(3,466 Views)