08-04-2010 10:25 AM
Hi
This is my first serious encounter with vit and I'm in doubt already.
I have a functional global that I need for different user interfaces. So I converted that vi to a vit and use the reference to it when needed .
I noticed that whenever I make a new instance of the vit with "Open VI-reference" a new name is generated by appending a number.
The user interface is open only for a while, will be closed and maybe opened anew later.
Closing the reference of the vit does although not release the number and the next time I need an instance a new higher number is appended.
This may be save. Can anybody tell me if the VIT-Clone still idles somewhere around and uses memory or what happens when after hopefully many, many weeks of uninterrupted operation i reach vit 2000000 ?
Thanks
Solved! Go to Solution.
08-04-2010 10:58 AM
There is a property called 'All VIs in Memory'. Use this to check how many instances of the template are still open.
Felix
08-04-2010 11:35 AM
A better approach would be to use reentrant VIs. I think you will need the 'don't share clones' option.
Ton
08-04-2010 12:47 PM
Ton,
The OP said the VI is a functional global. I think that functional globals cannot be reentrant.
Gabi,
Can you tell us a bit more about your application? Post examples if possible. Someone can probably suggest a way to do what you want.
Lynn
08-09-2010 08:42 AM
Thank you guys for your inputs.
Since I use the functional global only by reference a reentrant VI with no code share is perfect.
I don't really need an extra version of the source in this case.
I have another case where I spawn daemons from a reentrant vi and it is bad that I cannot find them with the "All Vis in memory".
Maybe I'll redo that case as well, but then with VIT.
Thanks again
Gabi