Example Code

Programmatically Hide Front Panel when in Run Time Mode 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
This vi demonstrates how we can use VI Server architecture to hide a vi's front panel when in a Run Time System.


Description

This vi demonstrates how we can use VI Server architecture to hide a vi's front panel when in a Run Time System. (i.e. .exe) The App.Kind property node gives us information on the state of the application run mode. The vi's reference is used with the FP.Open Invoke node set to "Hidden" to hide the front panel when the application is run hidden.


Requirements

  • LabVIEW Professional 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download code/snippet
  2. Add this code to the start of your application. This will force this code to execute before any other code.
  3. Build code within a project, and build executable.
  4. Enjoy!

 

Additional Information or References 

VI Snippet

wt.png

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

 

Ashish Naik
Automotive Business Development Manager
National Instruments UK

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