LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

generate new fp by a single click of a button

i have two front panels. ''welcome page'' and ''graph page''. on the welcome page i have a button named ''go to graph''. i want the click event on the ''go to graph'' to load and run the front panel named ''graph page''. how do i achieve this. am a labview starter so please explain block diagram intuitively.
0 Kudos
Message 1 of 5
(2,914 Views)
hello,

I've made an example just now for your case. See it and try to understand.

It's in labview 8.2.

Next time don'0t forget to say what's your labview version.
Software developer
www.mcm-electronics.com





PORTUGAL
Message 2 of 5
(2,893 Views)
Set the graph page vi properties  - show front panel when called & close afterwards if originally closed & kept this vi into goto graph button value change event
see attachment
 
-Kumar B
Download All
0 Kudos
Message 3 of 5
(2,892 Views)
Hello.

If the program is quite small you might want to take a look at the "tab control".



//Beckman
0 Kudos
Message 4 of 5
(2,884 Views)
Hello maydom,

In regard to your question, it sounds like the best way to do this would be to use VI Server to programmatically open the front panel of the Graph VI from your Welcome VI. To do this, I would recommend that you take a look at the Programming >> Application Control pallet on the block diagram. Specifically you will want to use the "Open VI Reference" VI to which you can wire in the path to the Graph VI. If you wire the reference that is returned from this VI into an invoke node, you will be able to select the Front Panel >> Open method that will open the front panel of the Graph VI.

There are several examples in the LabVIEW Example Finder that use VI Server and property and invoke nodes. Please take a look at these and the suggestion I mentioned and post back if you are still having any difficulty. Thanks!

Mike D.
National Instruments
Applications Engineer
0 Kudos
Message 5 of 5
(2,860 Views)