Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
1 ratings:
 5 out of 5   

How Do I Create Custom Run-Time Menus in LabVIEW?



Primary Software:
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I want to customize my LabVIEW application by adding a Run-Time Menu. How do I integrate this feature into my program?

Solution:
The following steps explain how to generate and implement a Custom Run-Time Menu (*.rtm) for your VIs:
  • Select Edit»Run-Time Menu from the pulldown menu of the VI.
  • Select Custom from the menu type list box in the Menu Editor dialog box.


  • Add menu items by selecting User Item as the item type from the Item Type list box, filling in the Item Name and Item Tag fields and clicking the add button. Continue adding items and organizing the custom menu as desired.


  • Use the yellow arrow buttons to create submenus, or move the location of created menu items.


  • Save the menu in the same directory as the VI by selecting File»Save As... from the pulldown menu.
  • Close the Menu Editor.
  • If you want to change the run-time menu at run-time, this can be done programmatically. Handle menu events using the functions from the Menu palette in conjunction with an Event structure. For additional information, refer to the related links below. 


When you run the VI, the menu for the front panel will use the custom menu you created.



Related Links:
NI Community: Using Events in LabVIEW to Handle Run-Time Menu Selections
LabVIEW 2013 Help: Customizing Run-Time Shortcut Menus for Controls Programmatically
LabVIEW 2013 Help: Customizing Run-Time Shortcut Menus for Controls Statically 
LabVIEW 2013 Help: Menu Selection (User) Event
LabVIEW 2013 Help: Customizing VIs
LabVIEW 2013 Help: Handling Run-Time Shortcut Menu Selections

Attachments:





Report Date: 04/03/2003
Last Updated: 10/10/2016
Document ID: 2W2GEKMW

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit