ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display continuous data in a pop-up graph window

I'm generating random numbers, and I'm trying to display this continuously on a pop-up graph window. I've been able to make a pop-up window, and I can plot the data via a waveform chart, but I can't seem to put both of these features together. I would like to have the data run, and then at any point I could press a button that would bring up a graph which displays the previous values as well as the ones continually being generated. Is there a solution to this, or should I be trying another route than a pop-up window? I'm pretty new to LabView, so any help would be appreciated!
0 Kudos
Message 1 of 5
(3,589 Views)
Hi cwn,
You should be able to that using using VI sever functions. With the reference of your pop-up window, you can use an invoke node called Control Value=> Set value [Flattened] or Set value [variant]. I ususally use the Set value [variant] funstion and in my pop-up VI I cast the value according to the indicator type.

I hope this helps. If you have any problems, don't hesitate to post another message and I'll send you an exemple.
CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 2 of 5
(3,558 Views)
I appreciate your help zyl7, but I'm a little confused as to how to use the invoke node. If you have the time to show me an example, I'm pretty sure that would help.
0 Kudos
Message 3 of 5
(3,550 Views)
Hi cwn,
Attached to this message you'll find two files. The image shows how to send data to your pop-up indicator using an invoke node. The string constant is the label of the pop-up control that i want to reach.
In my application, i wanted to continuously read data from a control and display its value in the popup indoctor. The easiest way to do that is to send the reference of the control to read to the pop-up indicator. Then using VI servers function you can read the value of the control... My pop-up is set as reentrant so I can display several pop-ups at the same time and send them different references...

Once the value of the control is set, I activate the VI and run it...

I hope this helps...
CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
Download All
0 Kudos
Message 4 of 5
(3,530 Views)
I would suggest using a queue instead. This way you don't have to deal with flattening/unflattening, and setting the datatype for variants. Look in the Example Finder (Help->Find Examples) for examples on queues.
0 Kudos
Message 5 of 5
(3,507 Views)