LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

open a vi

Hello,

 

I'm working with an application in labview where I can read and plot data coming from different physical channels. However, I have created a SubVI that is called from the main VI, in order to plot some processing of the original data. Is there any possibility to make the results of this SubVI appear on the screen whenever this SubVI is called from the main VI? I have noticed that if I don't do it myself, the SubVI will not be opened.

 

Thank you very much in advance,

 

Miren

0 Kudos
Message 1 of 5
(3,164 Views)

Miren,

 

You can try setting the properties of your subVI to the following:

 

File > VI Properties > Window Appearance > Customize > Show Front panel when called

 

This should bring up the front panel of your subVI when it is called by the main VI.

Misha
0 Kudos
Message 2 of 5
(3,163 Views)

Here is another thing that you can do.  You can have a graph in the main vi and have it updated by the subvi.  Then you would not have to show the subvi front panel at all.  To do this, you will have to create a reference of the graph and pass it into the subvi.  In the subvi, you will use a Value property node to update the graph.  This way, while the subvi is running in the background, it can update the main vi graph on the fly.  If you are interested in this method, I can send you some example code on how to use references to update main vi indicators from a subvi.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 5
(3,150 Views)

 


@tbob wrote:

If you are interested in this method, I can send you some example code on how to use references to update main vi indicators from a subvi.


An example showing this already ships with LabVIEW. Help -> Find Examples, search for "property" and open the "Property Nodes" example.

 

0 Kudos
Message 4 of 5
(3,147 Views)

Thank you very much for helping me.

If I need any more help I would contact you again.

Miren

0 Kudos
Message 5 of 5
(3,121 Views)