03-26-2013 12:57 PM - edited 03-26-2013 01:07 PM
Hi!
I have a system that collects a 1-D array of waveforms from 4 channels, and i need to display it on a popup chart. In this popup, i should be able to select which of these channels i wanna see on the chart, activating or not boolean controls (4, in case). Can someone help me with this? I just tried to create a subvi directly from the main application, but the one executes and closes with like a 1ms delay, and the popup stays blinking forever.
Regards,
Vitor P.
03-26-2013 01:09 PM - edited 03-26-2013 01:10 PM
The blinking is a result of opening/closing the subvi as fast as possible.
Some concerns. In order to keep the subvi running, you'll have to use a while loop. This would mean your main VI is paused until you are done viewing graphs. If this is ok with you, go ahead.
If the main program needs to run while you view graphs, these VI will need to be parallel.
Use a Functional Global Variable to store your data so that each VI can access it (plenty in the forums on this). When you want the VI to open/run, use "Open VI Reference" , then a property node to open the VI. An Invoke node will let you run the VI. You must be very careful with this option as you could end up trying to write and read the functional global at the same time... definately not ideal.
03-26-2013 01:24 PM
I need to keep my main application running, like the second option.
Thanks for the answer, i'll work on it.