- On the front panel of the VI for which you want to create a run-time menu, open the menu editor by selecting Edit>>Runtime Menu.
- In the menu editor, set the menu type to <Custom> and the item type to <User item>.
- Set an item name and an item tag for your menu.
For this example, we will create a menu called Option (O) with multiple sub-menus, all accessibles with keyboard shortcuts.
The Option(O) menu will be acccessible with keyboard <Alt> shortcut. To anable the <Alt> key shortcut on this menu, add an underscore bar (_) in front of the letter to be used together with <Alt> key ("O" in this example).
※At runtime, this underscore bar will appear under the letter it precedes .
- (Optional) To add a sub-menu
- click the plus(+) button.
- click the right arrow.(→)
- Enter an item name(c)
- edit the item tag(d), if necessary.
- click inside the <Shortcut (enter key component)> text box and, press a letter on the keyboard to set the sub-menu shortcut.
In this example, by pressing the keyboard <C> letter , <Ctrl+C> will be registered as the shortcut for this sub menu.
Pressing keyboard <Shift+C>, will register <Ctrl+Shift+C> as the shortcut for this sub men.
*This <Shortcut (enter key component)> text box can only accept <Ctrl> and <Shift> keys.
- You can add other sub-menus by repeating steps 4-a, 4-c~e.
- Select File >> Save , to save thecreated custom runtime menu. Runtime menus are saved as .rtm files.
- close the menu editor (X) and select <yes>