LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I monitor parameters from a SubVI on the front panel of the main VI?

Good day.  I have a LabView program that I am modifiying (actually it is a National Instruments demo program called Simple PID Demo).  On the Front Panel of the main VI, I need to monitor several parameters that are on a SubVI.  How do I do this?
 
Thank you very much for your time and help.
Michael
0 Kudos
Message 1 of 3
(2,652 Views)

Hi Michael,

Global Variables should solve your problem.

Looks like you have to pass values  from  Sub VI that will execute continously inside a main vi.

Look at attached VI

Hope you can implement this type of logic in your program.

regards

Dev

 

 

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

Or else you could put indicators on your main VI's front panel to hold the data you want to monitor. Pass indicator references to the subVI, and have the subVI update the main VI's indicators through those reference inputs (use a reference to make a "Value" property node and write to the node). That way the indicators are updated in real time, i.e. as fast as the subVI updates them.

I think that's a cleaner solution than to use globals. Of course, for a small, one-time-only type of application, it might be faster just to create a few globals. No biggie in that case.

::Marty

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