09-14-2010 04:15 PM
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
09-14-2010 04:17 PM
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.
09-14-2010 04:51 PM
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.
09-14-2010 04:56 PM
@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.
09-15-2010 04:06 AM
Thank you very much for helping me.
If I need any more help I would contact you again.
Miren