LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating a popup menu ??

hey
 i need to crate a popup menu in labview at the start of the vi that i want to run ....meaning that i want the option that when i start the vi there should be menu appearing for the user to select from a bunch of programmes for example  i have two vi's 
a- avi write
b-avi read
so i would like to do is that when i run the vi it should first ask the user to that whether user want to use the first or the second vi .
is there some way of doing this .....
thnx  
Regards
0 Kudos
Message 1 of 7
(3,189 Views)

Hi

You can write a new VI which only has two buttons for AVI read/write on its front panel. Then, pop-up this VI before running your VI.

0 Kudos
Message 2 of 7
(3,181 Views)
Open up the Example Finder (Help -> Find Examples) and search for "dialog". If you open the "Dialog Box Demo" example you will see an example of using a separate VI to ask for a username. You can do the same thing for your application. Just have your buttons on this popup VI and pass back which button was pressed. If you have just 2 buttons you can have 2 Boolean output from the VI for each button. If you will have many buttons you will probably want to use something else, like a string output to indicate the button name, or perhaps an enum.
0 Kudos
Message 3 of 7
(3,155 Views)
hey smercurio… hi
i have seen the examples "dialog" but what i still cant figure out is that how can i use the bottons on the first vi to call the other vi's???
meaning that if i have two bottons on the vi front pannel how can i use them to call the other vi's???
Regards
0 Kudos
Message 4 of 7
(3,128 Views)

put the other two vi's in a case structure downstream of your pop up.  Take the button presses out of the pop up and use them to select which case to run (i.e which sub vi will execute next).

 

Craig

LabVIEW 2012
0 Kudos
Message 5 of 7
(3,125 Views)
i dont need them to execute juss after pressing the botton ..i need to them to pop up when i press the bottom
Regards
0 Kudos
Message 6 of 7
(3,101 Views)

Yes, you do need them to execute. The pop-up VI has to run in order for the user to select something and pass it back to the main.

Connecting Booleans to case statements or having an event structure that calls the subVIs is pretty basic (as is a pop-up). I would highly recomend you look at the basic LabVIEW training available here.



Message Edited by Dennis Knutson on 07-30-2008 08:38 PM
0 Kudos
Message 7 of 7
(3,097 Views)