09-03-2009 03:48 AM
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.
09-03-2009 03:55 AM
09-03-2009 04:27 PM
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