LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controlling captions sub VI

I'm cotrolling the captions of various controls in a sub VI but they don't carry through to the calling VI. Anyway around this? I've attached a sample calling VI called (TempMain), the sub VI (FuseSelection) and the control (GenieFuses).

You'll notice that the captins on the sub VI change programatically, but it doesn't carry through to the main VI.


~~~~~~~~~~~~~~~~~~~~
Paul Johnson
Renco Encoders, Inc
Goleta, CA
~~~~~~~~~~~~~~~~~~~~
Download All
0 Kudos
Message 1 of 2
(2,616 Views)
The caption of a subVI is not part of the data that gets passed on to higher-level code. If you want to change the captions of a top-level VI's controls and indicators in a subVI you need to pass the reference to the controls that you want to manipulate to the subVI. This can be done by either bundling all the control references into a cluster that you pass to the subVI, or by passing a reference to the top-level to the subVI. Once in the subVI, this reference can be used to obtain references to anything on the top-level VI's front panel.

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 2
(2,609 Views)