LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display graphs from a sub-vi

I'm have several xy graphs in a sub-vi that need to be displayed and updated in main. The same graphs need to be accessed in different sequences from within a stacked sequence stucture in main. I've tried creating a reference of the graphs in main and putting this in the sub-vi with a property value, but i cant get it to work. The graphs in the sub-vi update but not the graphs in main. I'm stuck, there must be a way???
0 Kudos
Message 1 of 3
(2,763 Views)
There's several ways and references in the subVIs are one of them. Look at the attached examples and see if it's similar to what you're doing.
Download All
0 Kudos
Message 2 of 3
(2,762 Views)
I would maybe look at launching the sub-vis using VI server (so that the main VI does not wait for execution to finish) and then communicate through Queues. By sending every new data point (or few points depending on the refresh rate) to a dedicated queue, a very easy interface between main VI and sub-VI can be made.

As to efficiency, ?? Maybe someone out there can drop in a pearl of wisdom on the subject.

For me the practical simplicity is remarkable (I`ve become somewhat of a queue fan lately for asynchronous data acquisition from multiple sources).

Of course Globals would work too, but they`re pretty much frowned upon I guess.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 3 of 3
(2,762 Views)