|Download Help (Windows Only)|
You can use elements in the Custom Device XML to configure custom user interface components, such as glyphs, toolbar buttons, and shortcut menus.
A glyph is the icon that appears next to an item in the System Explorer window configuration tree. For example, custom device sections appear with folder glyphs () by default.
Within the <Page> tags for an item, you can use the <Glyph> tag to configure a custom glyph to display for the item. You can use any PNG file as a glyph. A collection of glyphs that install with NI VeriStand is available at <Application Data>\System Explorer\Glyphs.
Buttons appear in the toolbar of the System Explorer window. Toolbar buttons are dynamic in that they only appear when the System Explorer window displays the configuration page associated with the button.
Within the <Page> tags for an item, you can use the <ButtonList> tag to configure the toolbar buttons that appear with the item's configuration page. Each <Button> must include a unique <ID> string that identifies the button. The toolbar button displays by default. However, in each page VI, you can use the Disable Dynamic Button VI and the Enable Dynamic Button VI to dynamically disable and enable a button for that page based on its unique ID. These VIs are useful when you want the toolbar button to appear only when certain conditions are true. These VIs are located in the labview\vi.lib\NI VeriStand\Custom Device API directory. Use the following XML framework to implement a toolbar button.
A shortcut menu for an item is the menu that appears when you right-click the item in the System Explorer window configuration tree.
Within the <Page> tags for an item, you can use the <RunTimeMenu> tag to configure the shortcut menu for the item. Each <MenuItem> you add under <RunTimeMenu> includes an <Item2Launch> section that specifies a VI to run when an operator selects the menu item. The Custom Device API library includes a template for this VI, RunTimeMenu Custom Item 2 Launch.vit, in the labview\vi.lib\NI VeriStand\Custom Device API directory. Use the following framework to implement a shortcut menu.