LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph data from different SubVI's

Hi,

 

I am trying to graph data from two different SubVI's. In the main VI I have two SubVI's with some info and one graph for each subvi. I just need to have one graph including all the information from both VIs. I have tried a lot of things and I cannot do this. I think that the easiest way is to place everything in one SubVI, unfortunately I cannot do that, these two VI's should stay separate

 

Attached is a simple example of what I want to do.

 

Thanks for the help!

 

Download All
0 Kudos
Message 1 of 4
(2,702 Views)

Hi Hernar,

      In your example, SubVI1 and SubVI11 both execute and generate a single value for each loop of MainVI - is this how the finished program will work?  If so, it would be much simpler without references and makes the update of a multi-plot chart almost trivial.  Sometimes people launch SubVIs that run continuously and independently, often producing data to be used elsewhere in the program (like in Main) - is this what you had in mind for SubVI1 and SubVI11?

 

Cheers!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 2 of 4
(2,687 Views)

I don't uderstand why you have to do things with references. Simply use plain data wires and connectors. 😉

 

Now you can simply unbundle the two subVIs output and combine it before graphing. I no longer have LabVIEW 7.0, so here's a picture. Modify as needed.

 

Message Edited by altenbach on 11-17-2008 11:44 PM
Message 3 of 4
(2,674 Views)

Thank you for your replies. I tried your suggestion altenbach and now it works!

 

 

Best Regards,

Hernar

0 Kudos
Message 4 of 4
(2,656 Views)