11-03-2009 07:28 AM - edited 11-03-2009 07:30 AM
Is it possible to use a static VI reference to dinamically launch a VI as reentrant?
I found this old post, http://forums.ni.com/ni/board/message?board.id=170&message.id=120367, the user found a workaround but it's ugly, isn't it
Solved! Go to Solution.
11-03-2009 08:00 AM - edited 11-03-2009 08:01 AM
The last snapshot in your link does show the best way to invoke an instance of a reentrant VI dynamically. The one thing I would change from that is to use the VI Name property instead of the VI Path property to wire into the Open VI Reference. You can use just the VI name if the VI is in memory, which is more efficient. Since you have a Static VI Reference, the VI will definitely be in memory.
I agree it's a little ugly. Personally, I created a subVI to hide the ugliness and make it feel more straightforward! 🙂
11-03-2009 08:08 AM
In LV 2009 it is now possible for a VI to directly call itself.
Ben
11-03-2009 08:30 AM
Ben wrote:In LV 2009 it is now possible for a VI to directly call itself.
I learnt this thing new today. Thanks a lot Ben.
11-06-2009 04:13 AM
ben,
That is grt. So no more "you cannot use "sub.vi" recursively" message eh? nice