LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a pop up menu or option in labview?

Hi to all,

 

Just want to ask, how do u create a pop up menu? when you click on a certain button, another view or option would appear like series of texts or instructions. thanks again. thanks 

0 Kudos
Message 1 of 8
(10,000 Views)
Are you referring to a new window, or making an indicator that's on the same front panel visible when the user clicks the button? For the former you just create a VI that's set to display itself and simply call the VI from the button's event handler. For the latter, you can simply use the Visible property for the indicator. Have you checked the examples that ship with LabVIEW?
0 Kudos
Message 2 of 8
(9,990 Views)
Its like creating a new window within the front panel when a certain button was clicked or pushed. I havent seen the sample yet. actually, cannot find what particular sample will suite my need. 
0 Kudos
Message 3 of 8
(9,984 Views)

Hello,

 

        I am not sure this will help you or not.. But this is the easiest way of creating a pop up menu using a one dialog command. Have a look and let me know whether it helps you or not..

 

 

POP.PNG

 

 

You can also create a new VI and resize its window size using VI properties and use it as a pop up if you want it to work in your own desired manner.

 

Best Regards,

 

Nitzy 

0 Kudos
Message 4 of 8
(9,979 Views)
Thanks for the help! i was able to use it as well. Thanks. However, just want to know, what if i want to display a certain picture? instead of showing the dialogue box, i want a certain picture to be viewed when the button is pressed. Thanks again.
0 Kudos
Message 5 of 8
(9,968 Views)
Also, how can i create a play button? a button that will run the whole program instead pressing the run mode itself. thanks
0 Kudos
Message 6 of 8
(9,964 Views)

jmvrd wrote:
Its like creating a new window within the front panel when a certain button was clicked or pushed. I havent seen the sample yet. actually, cannot find what particular sample will suite my need. 

If you search for "dialog" in the Example Finder you will find several examples. For instance, the "Dialog Box Demo" displays a popup window when you click the button. The example should be updated to use the event structure rather than the polling method that it currently uses, but the idea is the same. The subVI that is called can be customized to whatever you need to display.

0 Kudos
Message 7 of 8
(9,947 Views)

jmvrd wrote:
Also, how can i create a play button? a button that will run the whole program instead pressing the run mode itself. thanks

You don't actually create a play button. You need to create an architecture that has your program idle until something happens. A while loop with an event structure within it will do that. See the "Login dialog" example that ships with LabVIEW for an example of how to use an event structure. Depending on how complex you need your program to be, you may need to look into using a state machine, master-slave, or producer-consumer architecture.

0 Kudos
Message 8 of 8
(9,943 Views)