|Download Help (Windows Only)|
You can add custom items to the shortcut menu of front panel and block diagram objects by creating shortcut menu plug-ins. Shortcut menu plug-ins call VIs that you customize using VI scripting. You can create custom items that appear when you right-click the following objects:
Refer to ni.com/lvmenus for more information about shortcut menu-plugins and for code examples from the NI Community.
A shortcut menu plug-in must contain the following files, where x is the name of the plug-in.
You save these files in an LLB with the plug-in name (x.llb). LabVIEW searches and loads plug-ins from LLBs in one of the following directories only. LabVIEW ignores contents of subdirectories when searching for plug-ins.
If two LLBs have the same name, the LLB in the labview\resource\plugins\PopupMenus directory takes precedence.
Creating a shortcut menu plug-in consists of the following parts:
To begin creating a shortcut menu plug-in, run the following utility VI: labview\resource\plugins\PopupMenus\Create Shortcut Menu Plug-In From Template.vi
The utility VI generates the files you need for your plug-in. You customize the files to build the shortcut menu and execute the plug-in.
|Part 1: Specifying the Objects that Shortcut Menu Plug-Ins Affect|