LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory management problems with Interpolate 2D Scattered

Hello.

 

I am pretty new to LabView and this is my first cry for help. I am trying to interpolate a file with around 250 000 points of data. It's the result of the scan of a 3D object (a statue's head) and the idea is to change the current scan mesh, based on triangles, to a square grid with the Z coordinate and normals as interpolated values based on the original scan.

The problem is when I feed the X, Y, Z, xi and yi arrays into the method memory usage (as seen in Task Manager) starts growing at a tremendous pace. When it arrives at around 1.6 Gb (around 60% total RAM) LabView breaks down declaring it's out of memory. This all happens within the Interpolate 2D Scattered method, specifically in the NI_AAL_Geometry.lvlib:Triangle Search.vi 5830005.

I am powerless to address this issue as it all happens in distribution vi's and not in my own code. I have tried to minimize my memory use as much as possible but still get this problem. Any ideas?

Thanks in advance!

0 Kudos
Message 1 of 4
(2,133 Views)

Show us the code!

 

Preferably with a (small) set of data.

0 Kudos
Message 2 of 4
(2,117 Views)

Here's the code.

0 Kudos
Message 3 of 4
(2,112 Views)

Here's the code.

Download All
0 Kudos
Message 4 of 4
(2,109 Views)