02-16-2009
03:42 PM
- last edited on
05-09-2025
04:37 PM
by
Content Cleaner
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
02-16-2009
04:50 PM
- last edited on
05-09-2025
04:38 PM
by
Content Cleaner
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.