LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can subsubVI be separated in one subVI from another subVI?

Example: LowLevel subsubVI communication  manager with internal states (functor).

Now, i got two subVIs: sub1VI, sub2VI,  and i want to use the subsubVI in multiple locations (so simple reenterant wont work) on each subVI and i need that the internal states will be separated for each subVI.

 

Simple solution will be to create twice the subsubVI, other solution will be to reprogram the subsubVI and use array inside it...

 

but i want something more clever. that each subVI will allocate different memory for his subsubVI.

0 Kudos
Message 1 of 3
(2,703 Views)
Re-doing the sub vi is the one thing that comes to my mind. You can also use "Diagram Disable Structure" for this purpose.
0 Kudos
Message 2 of 3
(2,700 Views)

Hello,

 

Maybe I'm not understanding you clearly, but if you need to make multiple calls to the same subVI and want each to have their own data space, you would use reentrant execution set the preallocate clones. This is outlined here: http://digital.ni.com/public.nsf/allkb/98847B4E4C715E6D86256C59006B57CC?OpenDocument

 

-Zach

Message 3 of 3
(2,671 Views)