Example Code

Creating a Menu Pane for a VI

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

This VI uses a Horizontal Splitter Bar to create a menu on the front panel of a VI.


Description

The upper pane contains the main front panel of the VI, and the lower pane contains various controls which form a menu.   Splitter Sizing is set to Splitter Sticks Bottom, and the upper pane has Pane Sizing configured to Scale all Objects with Pane.  As a result, the upper pane scales as the VI resizes, and the menu remains a fixed size.


Requirements

LabVIEW 2012 (or compatible)


Steps to Implement or Execute

1. Click the Run button.

2. Experiment with the Plot and Clear buttons, as well as Number of Points.

3. Click Stop when finished.


Additional Information or References:

 

Creating a Menu Pane for a VI FP.png

 

Creating a Menu Pane for a VI sn.png


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

 

Jennifer R.
National Instruments
Applications Engineer

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