LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is the content of a called VI copied to a calling VI?

Assume that I want to call "A" in "B".

 

A is 1MB in size.

 

If B calls A twice, does B gain extra 1MB compared to when B calls A once?

 

I want to know if B just needs a few bytes to call A onc more time or if the content of A is copied to B each time A is called in B.

0 Kudos
Message 1 of 3
(2,022 Views)

Short answer: Maybe, it depends.

 

If B stores data, e.g. in an array will grow in memory, yes.

 

If you mean the VI itself, it wont grow, unless you Inline a subvi.

 

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 3
(2,016 Views)

@iCat wrote:

Assume that I want to call "A" in "B".

 

A is 1MB in size.

 

If B calls A twice, does B gain extra 1MB compared to when B calls A once?

 

I want to know if B just needs a few bytes to call A onc more time or if the content of A is copied to B each time A is called in B.


 

The answer to that question can be found in the "Clear as mud" thread.

 

CAUTION!

 

Wrap your head in duct tape befor reading that thread to help reduce possible injury.

 

 

 

In that thread Greg McKaskle (now so high in LV R&D we need a telescope to see his feet) comes out of the Ivory Tower long enough to exaplain how and when buffers are copied.

 

Have fun!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,009 Views)