From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to write an application in LabVIEW (2020+) that has a hidden panel and that will not flash at launch after being compiled to exe?

Is it possible to write an application in LabVIEW (2020+) with a hidden panel that will not flash at launch after being compiled to exe?

 

Let's assume that my application can be run as an exe with or without the front panel (it starts without FP and at some point, it might be displayed). Is it possible to use some tricks to make the application window not flash at startup? I know many have already tried this. That you can change the state to "hidden", make a transparent background, etc., but the application window always flash for a fraction of a second.

 

Hence my question: is it possible to make this window not blink at startup and also appear later when it is needed? Is it technically possible in LabVIEW?

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
0 Kudos
Message 1 of 31
(1,873 Views)

I can't help you with starting up without any flashing (hopefully someone else can chime in) but you could always use a splash screen. Just a simple VI that launches your main VI and shows a logo, or a Welcome message, or something like that.

 

That can be helpful if your user is clicking something to start the program. It gives visual feedback that the program has started up. Of course, you may not want that if, for example, you're launching this second program automatically somewhere.

0 Kudos
Message 2 of 31
(1,858 Views)

If you have Fast File Format enabled, it will always flicker, see this discussion.

Certified LabVIEW Architect
Message 3 of 31
(1,804 Views)

Setting the transparency to 100% (in VI Properties>Window Appearance<Customize...) does seem to work.

 

IIRCF, LV actually hides the window if you set it to 100% (you won't get events or be able to register dynamic control events). The FP.state property does return Standard though. I often had to set it to 99%.

 

But in an exe, it does seem to prevent the splash of the top level VI.. Iff fast file format is off.

Message 4 of 31
(1,775 Views)

I have "use fast file format" unchecked and the flicker remained.

 

Perhaps it should be a combination of multiple different settings? 

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
0 Kudos
Message 5 of 31
(1,763 Views)

@bienieck wrote:

I have "use fast file format" unchecked and the flicker remained.

 

Perhaps it should be a combination of multiple different settings? 


Did you set the transparency to 100%?

0 Kudos
Message 6 of 31
(1,754 Views)

The Splash screen is the solution to that problem in my case. My Splash screen is a fairly simply VI (although it has some trickery build in so that I can also launch it as About screen during application run).

 

It's set as the startup VI in a project, opens the application ini file to read some settings from it and then launches the real GUI application front panel. After that it sits in a loop and polls the state of the GUI front panel, showing some activity progress while looping in there. Once it sees that the GUI front panel has been made visible. It stops and closes itself.

 

The GUI itself is programmed to start up in hidden mode but opens right away a reference to itself. This makes sure that it stays in memory even if the Splash Screen launcher is for some strange reason aborting itself. Then it initializes whatever it needs to initialize and as one of the last things in its initialization sequence it makes itself visible through the FP.Open method.

 

Unless you try to start this up on a rather old and underpowered PC, there should be no noticeable flickering.

Rolf Kalbermatter
My Blog
0 Kudos
Message 7 of 31
(1,747 Views)

I tried with 100% transparency. It doesn't work.

 

Splash screen could be a solution but it is not the answer to my question.

 

What is more, imagine seeing splash screen each time you run, for example, ping from the cmd. It would be ridiculous.

 

So, once again, is it technically possible to start LabVIEW-based exe with hidden FP without flickering?

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
0 Kudos
Message 8 of 31
(1,684 Views)

So far I have never come across someone who has reliably and successfully launched an LV application hidden, after many unsuccessful attempts, we resort to a splash screen and call it a feature than a bug.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 9 of 31
(1,671 Views)

So basically you want a sort of command line tool but without command line window either? That really strikes me as the proverbial hammer to drive a screw in. 

Not only is Windows process creation already rather slow compared to the same on Linux for instance but you also add the startup time and memory load of the LabVIEW runtime and maybe to add insult to injury also add a little .Net in there since everything is still not loading slow enough?

Rolf Kalbermatter
My Blog
0 Kudos
Message 10 of 31
(1,662 Views)