LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Value passing from sub vi

Solved!
Go to solution

Hello,

 

I am programming some hardware and I am having a pretty basic problem. I have a sub VI that controls the data aquistion that has a busy signal boolean which evaluates to true when the equitpiment is on.  I would like to pass that signal on to my main vi, but the light in my main vi never turns on. I believe the issue is the sub vi only passes back values when it has finished and it finishes when the equiptment turns off. I created an example vi to demonstate my point. Is there any way around this problem?

 

Thanks 

Message 1 of 4
(3,151 Views)
Solution
Accepted by topic author wowden

Create a control reference to the indicator in the main VI, pass it to the sub-VI (through the connector pane) and write to it there using a Property Node.  Bob will be your uncle.

 

 

Oh, yeah.  Please don't use Stacked Sequence structures.  Search these forums for reasons why and alternatives to using these horrible, horrible, horrible things.

Message Edited by jcarmody on 03-04-2009 04:49 AM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 2 of 4
(3,136 Views)
How do you pass a reference to the sub vi? More specifically, what do i put on my sub vi`s front panal to wire to the connector?
0 Kudos
Message 3 of 4
(3,115 Views)
Oh, I got it. Thanks for your help.
0 Kudos
Message 4 of 4
(3,109 Views)