Hide the Front Panel of a Start-Up VI?

Updated Nov 24, 2017

Reported In

Software

  • LabVIEW 2014 Full

Issue Details

I have created an executable and I want to hide the front panel of the start-up VI so it appears to be running in the background. How do I do this?

Solution

You can use the Front Panel: Open invoke node at the beginning of the VI to do this.
However, this invoke node is not supported in LabVIEW Mobile Module or LabVIEW Touch Panel Module. This prevents you from hiding the front panel in applications built with these modules. 
Follow the instructions as below for all other development targets:
  1. Create a reference to the current VI’s path with Current VI's Path VI
  2. Open a reference to that VI with Open VI Reference VI
  3. Use Invoke Node and select Front Panel >> Open property
  4. Right click on State property and select Create>>Constant 
  5. Select Hidden
  6. Close the reference to the VI with Close Reference
The diagram below shows how this is implemented.
 
Please make sure that  VI which uses this code is saved before running. Additionally, make sure this piece of code runs before any other code in your VI. This will ensure that the front panel is hidden as soon as the VI is run.

WAS THIS ARTICLE HELPFUL?

Not Helpful