LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

managing large data sets

Hi,

I need help. I'm using a VI that use two big, very big, arrays. I have a lot of problem with the memory and I read this post: http://zone.ni.com/devzone/cda/tut/p/id/3625. In this articol I read that If I use tunnels LV makes a data copy every time the loop iterates. Can I avoid it?

 

thanks

0 Kudos
Message 1 of 2
(2,709 Views)

At the bottom of the first section, Reduce Data Copies, the suggestion is to use shift registers.

 

You can minimize data copies by using a shift  register and iterating over the data by using the index array function along with the iteration count terminal in the loop to select the data to manipulate, then use replace array element with the same iteration count. You aren't guaranteed that a copy won't happen.

 

If you are working with LabVIEW 8.5 or later, you might want to look at using the In Place Element structure.

Message Edited by Phillip Brooks on 02-16-2009 05:52 PM
Message 2 of 2
(2,696 Views)