LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change the front pannel while thw program is running?

I want the user to write an input (like "scanf" in C), and accordingly a menu will be opened with different options, to which he will respond, and another menu will be opened instead of the first one, and so on. How do I do that? Is there an example for it?
0 Kudos
Message 1 of 2
(2,619 Views)

An easy approach would be to call a sub-vi whose front panel appears if selected.

You create a sub vi.  When placed in the main or calling vi, you right-click the sub-vi and select "Sub-VI Node Setup" and choose "Show Front Panel When Called" and also "Close afterwards if originally closed".

There are other methods, but this may be the simplest.

You can find examples, depending on the LV version that you are using, under the Help Menu.  Select "Find Examples".  In the NI Example finder, look under "Building User Interfaces" and "Controlling Front Panel Objects Programmatically", there are ~18 examples for LV7.0. 

RayR

Message Edited by JoeLabView on 10-01-2006 02:06 PM

Message 2 of 2
(2,607 Views)