LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run Labview exe silently

Hi all,

 

I want to be able to run a Labview exe silently. I am aware that you can use VI properties to hide or make the front panel transparent when the main VI runs. However, when the application runs the front panel still "flashes" before it disappears. (I guess LV loads the runtime engine etc. before it gets to the bit of the code that makes the front panel hidden.)

 

Is there any way to run an LV application with a hidden front panel without this flashing effect? I want to run it completely silently, without even a minimised icon.

 

Thanks for listening.

 

0 Kudos
Message 1 of 14
(6,177 Views)

Have you configured the VI's Run-Time Position to "minimized" in the VI Properties?

 

You could resort to running the app as a service. There's a KB article that describes how to do that. If you search the NI site you'll find it.

Message 2 of 14
(6,146 Views)

One other thing you can do is edit the .ini file.

Add this HideRootWindow=True

This will take care of hiding the icon on the taskbar.

Cory K
0 Kudos
Message 3 of 14
(6,135 Views)

 


@cory K wrote:

One other thing you can do is edit the .ini file.

Add this HideRootWindow=True

This will take care of hiding the icon on the taskbar.


 

Actually, it doesn't. That just hides the initial splash screen. It doesn't hide the button for the actual build application.

0 Kudos
Message 4 of 14
(6,122 Views)

 


@smercurio_fc wrote:

 


@cory K wrote:

One other thing you can do is edit the .ini file.

Add this HideRootWindow=True

This will take care of hiding the icon on the taskbar.


 

Actually, it doesn't. That just hides the initial splash screen. It doesn't hide the button for the actual build application.


Oh... Smiley Tongue

 

Maybe I'm confusing it with another property.

I very rarely mess with the ini files of my applications,

but I know theres a property in there somewhere that can hide the application on the taskbar.

Cory K
0 Kudos
Message 5 of 14
(6,108 Views)

That would be "useTaskBar". However, all that that does is display the window's title bar only in the lower left part of the screen right above the taskbar. Doesn't seem like much of an improvement to me.

0 Kudos
Message 6 of 14
(6,106 Views)

According to me, and my experiment I ran a few seconds ago, Cory is right, HideRootWindow=True does indeed hide the app on the taskbar.

Richard






0 Kudos
Message 7 of 14
(6,088 Views)

 


@broken Arrow wrote:

According to me, and my experiment I ran a few seconds ago, Cory is right, HideRootWindow=True does indeed hide the app on the taskbar.


It doesn't with me. Perhaps it's OS dependent?

 

0 Kudos
Message 8 of 14
(6,080 Views)

It is. I run XP at work.

Richard






0 Kudos
Message 9 of 14
(6,074 Views)

I am using a small app that is called Hstart to silently run programs from the commandline. It is an invisible commandline prompt, so you can execute an .exe without popping up. Im not sure if it will work with a labview executable,

but if you have configured all front panels to be invisible this might work.

 

http://www.ntwind.com/blog/hstart-v1.1.html

 

I use it in my labview apps to call commandline pdf generation tools. it makes me nice pdf reports without any popup and just saves it in a specific location. Its not a pdf printer but really a document generation tool (LaTeX).

 

Message 10 of 14
(6,072 Views)