LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

updating data on pop up chart

My basic problem is that I have a main VI that has a lot going on as it is and it isn't always necesary to see the chart of the waveforms but it would be nice sometimes, so I figured I would have a pop up chart that shows the graph. A 'Launch Chart' button on the main VI would pop up the chart and a 'Close Chart' button on the subVI would close it.

 

I've poked around the forums for the last few days and I haven't had any luck implementing solutions of seemingly related problems. I can get the subVI to pop up but the chart doesn't update with the data. 

 

I've tried just having a case with the subVI in it but it doesn't update. The node-related image that I posted is copied from a similar VI but I don't know how to send my data through to the subVI, so to speak. Do people have any suggestions? As you can probably tell most of this particular stuff is new to me. 

 

I read something about notifiers--is that what I need to do? I have to admit I had a hard time grasping the notifier example. 

 

Thanks for your time. 

Download All
0 Kudos
Message 1 of 10
(5,052 Views)

Idontwantan,

 

Can you actually post your code?  The best way to do this would be to zip it all up and upload it here.

 

 I can see what appears to be one problem right off and that is that if you use VI server to open the subVI, you need to set Wait Until Done? to false so that the program doesn't sit and wait.

 

Other than that, it is difficult to see what is actually happening without the code.  This is a straight forward problem with a variey of solutions so please post the code if possible.

 

Cheers, Matt

0 Kudos
Message 2 of 10
(4,982 Views)

butidontwantanalias-

 

Seems like this example may help you out, if you need a chart type display.  If you get the value from your source by reference you'll be able to get the data from one VI to the other.  I hope this example helps.

 

Dustin D

Dustin D

Message 3 of 10
(4,971 Views)

here is a variation that uses events and a VI server reference to view the front panel.  I have changed Dustin's popup.vi so that the VI is now a global variable and the indicator is a graph.  You can do any type of variation on this, including having the x-axis show the time of the measurement - it just needs tweaking.

 

Hope this along with Dustin's gives you something to think about.

 

Cheers, Matt

Message Edited by mtat76 on 12-14-2009 02:34 PM
0 Kudos
Message 4 of 10
(4,955 Views)
This is an easy way to do it.
Tim
GHSP
Download All
Message 5 of 10
(4,940 Views)

Thanks for all the help so far.

 

Mtat76: I thought about posting the actual VIs but the main VI has a number of other parts that I probably shouldn't post and so I'd have to strip it down heavily to post the actual code

 

Aeastet, Mtat76 and Dustin 😧 I should have mentioned I'm using LV8.6, so I'm not able to view the VIs that you so generousy posted. 

0 Kudos
Message 6 of 10
(4,917 Views)
I meant to add that in the meantime I'll try global variables and getting values by reference, per your suggestions.
0 Kudos
Message 7 of 10
(4,916 Views)
Here is version 8.6
Tim
GHSP
Download All
0 Kudos
Message 8 of 10
(4,898 Views)

Just for completeness here is my code in 8.6

 

-Dustin 

Dustin D

0 Kudos
Message 9 of 10
(4,882 Views)
And lastly, here is mine.
0 Kudos
Message 10 of 10
(4,856 Views)