11-17-2008 03:26 PM
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!
11-17-2008 10:47 PM
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!
11-18-2008 01:43 AM - edited 11-18-2008 01:44 AM
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.
11-18-2008 04:39 AM
Thank you for your replies. I tried your suggestion altenbach and now it works!
Best Regards,
Hernar