LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to drill down from main screen to sub-VIs while keeping data gathering running

My app has several Tanks displayed on the main screen showing the current
reading for each tank as a fill level and Digital Display. I wish to put a
Graph button under each tank display, so that when the user clicks on the
Graph button, a subVI opens, showing a Graph of value vs. time for that tank
for say the past 10 minutes and continues to run. Then they can press a


So far it's not quite working right - I can open a Graph window, but only if
I Stop the While loop. My Graph stops and only shops data up to that moment
and doesn't continue.

NI sent an example VI but alas it stops the main window when opening the
subVI
- if I try to not STOP the main While loop in the main window, the
subVI doesn't open. It's as if you can't have 2 things running
simultaneously. Any suggestions or examples I can look at?
0 Kudos
Message 1 of 3
(2,661 Views)
You'll have to use separate while loops to achieve that, so that opening a subVI does not stop the main vi.
Hope this helps
0 Kudos
Message 2 of 3
(2,661 Views)
Hi,
you should use the Vi-server to open progammatically the graph sub-vi.
I attach a .LLb that contains a Main.vi that collects random data in an array.
You can open and close the front panel of the Graph sub-vi.vi that displays the data.

I added a graph also on the main vi to show that when the sub-vi is opened the main is still running.

Let me know if you need more help.

Good luck,
Alberto
Message 3 of 3
(2,661 Views)