LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

launchexecutableEx bug

Hi,
anybody seen this too:
I call
LaunchExecutableEx("file.exe", LE_HIDE, &handle);

file.exe is indeed launched, but LE_HIDE doesn't work. The executable is a
LabView exe file which I need for passing netvar stuff, and I would rather
not see it's window, or at least minimized.
taco
university of amsterdam
0 Kudos
Message 1 of 3
(3,424 Views)

bw:

 

I think this is a problem with the LabView executable, not the LaunchExecutableEx function call.  I'm looking at a similar problem try to launch CVI executables minimized.  It looks like the apps don't catch the minimize message.  CVI and LabView might be built with the same engine.

Another question is posted here: http://forums.ni.com/ni/board/message?board.id=180&thread.id=43247.

0 Kudos
Message 2 of 3
(3,421 Views)

bw:

 

I just posted a CVI project to the other thread that lets you try to launch a program minimized, or minimize or hide it later.  You can try using it to launch your LabView app as well.  After you build the project per the ReadMe file, just right-click on the app select listbox, and browse to your LabView app.

See the attachment here: http://forums.ni.com/ni/board/message?board.id=180&message.id=43643#M43643

 

It seems like CVI-built apps (and I'm guessing LabView apps) launch multiple hidden windows before they display the main user interface window, and that the window getting the LE_HIDE message is not the user interface (your front panel).  It may be that the best you can do is launch the LabView app, and then hide it after a brief delay.

Message 3 of 3
(3,400 Views)