LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to access Combo box from main VI in sub VI?

Solved!
Go to solution

Hello,

 

Trying to set up a test in a main VI. In this main VI I have a combo box to choose the type of test to run. I want the user to be able to select from the combo box and use that selection in a sub vi to tell the sub vi which specific test is going to be run. How to I access that combo box selection within a sub vi? I was looking at something with control refnum, but I am not sure if that is the best approach and/or how to do it within the sub vi. Any help or guidance would be awesome. 

0 Kudos
Message 1 of 4
(108 Views)
Solution
Accepted by topic author LearningLabVIEW

Why not pass the combo box value as an input to the subVI (as one on the connector pane)?

 

Do you have any requirements for event detection within the SubVI?

-Santhosh
Semiconductor Validation & Production Test
Soliton Technologies
NI CLD, CTD
LabVIEW + TestStand + TestStand Semiconductor Module (2013 - 2020)
NI STS for Mixed signal and RF
0 Kudos
Message 2 of 4
(107 Views)

Is the subVI interactive, running in parallel to the caller and the selection can change wile it is executing, or is it sufficient to set the state when the subVI is called?

 

(This is a very generic problem, not specific to combo boxes. We typically can give significantly more detailed answers if you could attach a simplified version of your caller and subVI)


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 3 of 4
(83 Views)

This was the exact solution I needed. Very simple and does the trick. I was trying to think at a deeper level than what I needed.

0 Kudos
Message 4 of 4
(74 Views)