Hide the Front Panel of a Start-Up VI?

Updated Jun 13, 2019

Reported In

Software

  • LabVIEW

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.

Additional Information

You can also configure any software to run minimized in the background using the shortcut properties in Windows. Create a shortcut and set the run to Minimized in the properties. A detailed tutorial can be found here.

In addition you can also use the Windows Task Scheduler to run your application hidden with the System account. Not only your application will run in the background but also you can make certain events trigger the launching of the application like system startup or you can make it run at a certain time of the day.
Task Scheduler

WAS THIS ARTICLE HELPFUL?

Not Helpful