LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Subvi with front panel terminal in a loop

Solved!
Go to solution

Hi,

     I want a subVI to refresh a plot on front panel. I know how to do it in one VI, see example. But how do I do it with a main VI and a subVI? For example, I want the 'Microphone signal' and push button on main program.

 

Thanks,

 

Ryan

0 Kudos
Message 1 of 6
(3,463 Views)
You pass a reference to those controls into the subVI from the main VI.  Inside the subVI, you connect those references to a Value property node.
Message 2 of 6
(3,454 Views)

Ravens,

     Could you give a sample?

 

Thanks,

Ryan

0 Kudos
Message 3 of 6
(3,446 Views)
Solution
Accepted by topic author RyanWu

Here is a simple example on how to use references between a main and a sub vi.  Open the subvi first, then the main so that sub is in memory when main is opened.

 

 

- tbob

Inventor of the WORM Global
Download All
0 Kudos
Message 4 of 6
(3,435 Views)

hi tbob,

 

i have the same problem, but i can't open your files since i'm using labview 8.6. can you post them in a 8.6 version or as a screenshot?

0 Kudos
Message 5 of 6
(3,365 Views)

I don't have 8.6, but here are the pictures:  Main is on the left, Subvi is on the right.

 

MainVI_BD.pngSubVI_BD.png

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 6
(3,343 Views)