08-29-2005 06:09 PM
08-29-2005 08:20 PM
08-30-2005 01:49 AM
The term open is a bit confusing. I assume you mean the FP. A VI can be open (in memory) even if its FP isn't.
To get the reference, you have to have a reference to the VI, which means it needs to be in memory. Since by obtaining the ref to the VI or by placing it anywhere in your hierarchy you're loading it into memory, then yes, you can get the reference even if isn't open. You should also be able to set it even if the FP is closed, as long as the reference is kept open. The tricky thing is that if you called the VI only dynamically and its FP is closed, it will be removed from memory once you close all the references to it or once the VI which opened those references stops running.
As for how to do that, simply use Open VI ref with the VI path. If it isn't in memory it will be loaded, but you have to rememeber to be careful about this.
08-30-2005 04:14 AM
How about call the dynamic vi once you need the reference? That means if you need the reference again call it again.
08-30-2005 09:14 AM
08-30-2005 09:24 AM
Objects placed in tab controls and clusters do not appear when you use the VIs Controls[] property.
Instead, you need to go into the tab using its Pages property followed by the page's Controls[] property.
Here is an example for a VI which returns the references of all the controls in the VI (not including clusters and tabs).