10-10-2011 03:56 PM
We have an Xcontrol which calls a few commonly used vi's. Thus, when our top level vi is loaded (but not executing) the vi's which call the xcontrol are loaded, thus the xcontrol facade is reserved for executing (not editable). That is not a signficant problem, but what is troubling is that the commonly used subvi's are also reserved for execution. If we want to edit them, we have to close everything and open them up individually.
Is there a better way? I was thinking of trying to call them dynamically...
10-10-2011 07:37 PM
In terms of your basic question, the answer is no.
Dynamic calling might be an option depending on how complex the functions are. If they are relatively simple, I would personally have a hard time justifying the effort to call them dynamically. Have you tried setting them to be in-lined. I have never tried it but it might make a difference. Something to try at least.
Mike...
10-12-2011 02:22 PM
What I ended up doing is using a call by reference node and in the "Call Setup" browsing to the VI I needed to call and selecting "Reload for each call". That allowed me to pretty painlessly call the vi dynamically rather than statically. In doing so, the VI that I needed to call frequently is not reserved when the xcontrol is on an open block diagram. Furthermore, I wasn't sure if the call by reference node was sensitive to connector pane changes, so I gave it a try and, indeed it did seem to update when the connector pane of the vi it's calling dynamically changes.
So, problem solved!