LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Gui Development Question

I have developed a GUI that uses a menu cluster in a while loop that looks for button presses. Also located in this main loop there are VIs that send and receive info from our target hardware each time around around the loop. I have the standard case structure in the main loop that does the action for each button press. Within the case structures are VIs which pop up and show sub-menus for particular sets of command choices. These sub VIs have their while loops and case structures and exit buttons. My question is this:

How can I get the command selected in a sub-vi back to the main VI without exiting from the sub-VIs menu. Is this a case for parallel while loops? I'm a little rusty with my LabView so any help is appreciated.

Thanks,

Mary Ellen
0 Kudos
Message 1 of 4
(2,934 Views)
Hello, Mary

You can use vi-server method "Get Control Value" from your main.vi when sub.vi is running. Only your sub.vi must be running dinamically and parallel to main.vi.

Look attached vi.

Nadav Chernin
nchernin@chiaro.com
0 Kudos
Message 2 of 4
(2,935 Views)
Hello all,

It will be great help if u can attach the file as .vi  I was not able to download the .zip as it is blocked here.


Thanking You
Techiess
0 Kudos
Message 3 of 4
(2,733 Views)
Techiess,
 
Here is the unzipped library.
 
Regards,
 
Craig D
Applications Engineer
National Instruments
Message 4 of 4
(2,706 Views)