LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can subVIs called by Xcontrols not reserve the subvi?

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...

0 Kudos
Message 1 of 3
(2,322 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(2,310 Views)

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!

0 Kudos
Message 3 of 3
(2,292 Views)