Example Code

Basic Front Panel Properties

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 shows how to use basic front panel properties.


Description

This VI demonstrates how to use property nodes to show/hide the menu bar, show/hide the title bar, and to make the VI transparent. It also shows how to use an invoke node to center the front panel. The while loop allows the code to run continuously until the stop button is pressed or an error occurs.


Requirements: LabVIEW 2012 (or compatible), Hardware: none.


Steps to Implement or Execute Code

1. Run the VI

2. Use the “Show Menu Bar?” toggle switch to show and hide the menu bar

Basic Front Panel Properties FP MB.png

 

3. Use the “Show Title Bar?” toggle switch to show and hide the title bar
Basic Front Panel Properties FP TB.png

 

4.Use the “Make VI Transparent?” toggle switch to change the front panel's appearance
Basic Front Panel Properties FP tp3.png

5. Use the “Center the VI” button to center the VI on your screen

6. Click the “STOP” button to end the program


Additional Information or References:

 

Basic Front Panel Properties BD.png


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

Justin Parker
National Instruments
Product Support Engineer

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