LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sub VI would consume less memory??

I read a book today. It said using subVI can save the memory usage. Is that true? How to achieve that? I don't quite understand
0 Kudos
Message 1 of 4
(2,847 Views)
One reason.  If you have a section of code that is repeated, it is stored in one subVI rather than copied all over the place in the main VI.
0 Kudos
Message 2 of 4
(2,845 Views)

I see. Thank you very much!

0 Kudos
Message 3 of 4
(2,795 Views)
Please note that subVI use can increase memory, as well.  If the overhead of calling the subVI is more than the size of the code in the subVI, you will actually increase the size and load time of your code.  The breakpoint is about 16kbytes code and data for the subVI (assumes block diagrams and front panels are removed).
0 Kudos
Message 4 of 4
(2,773 Views)