Example Code

Simple Menu Builder Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

The attached vi's shall help to create menus easy and simple to react on the selection.

 

Description

The menu can be defined in an ini file or fixed in an array. An event handler analyse the selection and execute the defined command.

Currently possible commands are:

  • set a cluster element
  • send a queue command

 

Requirements

Software

LabVIEW 2012 (or compatible)

 

 

Steps to Implement or Execute Code

1. Open the main functions. The main functions can be seen in the Example folder, it's a sub folder of the MenuLib folder.

2. Run the VI

 

Additional Information or Reference

 MenuLib ini 2012 NIVerified.png

mage1: Menu data from an ini file

 

MenuLib array 2012 NIVerified BD.png

mage2: Menu data from arrays

 

Ideas for Version 2_0_0:

  • enable/disable the main elements
  • insert new commads
  • allow more than one command for an element

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.