LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does Labview allocate twice the memory for arrays passed to a subvi?

When I pass an array of 1 million points to a sub-vi does labview create a copy of this data in another place in memory?
0 Kudos
Message 1 of 2
(2,523 Views)
Yes. SubVIs keep their own copies. This is one of the reasons why rules like modulizing the code into sub-VIs are best not followed when you work with *really* large data sets; then it's best to keep the code as "flat" as possible.

I think there has been a large thread here about this earlier where Greg McKaskle explained this in detail.
Message 2 of 2
(2,523 Views)