NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Why will the LabVIEW executable application not minimize when calling from TestStand?

I build an executable appliction of a LabVIEW VI, tried to call it from TestStand, and I setup the Initial Window State as "Show minimized, Activated", but when I run the sequence, the application still pops up. I tried with other windows application, they are fine. Anyone know what the problem is? Cheers.

0 Kudos
Message 1 of 6
(3,526 Views)

Hi - what versions of TestStand and LabVIEW are you using? Also, what operating system are you working with?

 

Thanks,

 

John M

National Instruments
Applications Engineer
0 Kudos
Message 2 of 6
(3,496 Views)

LabVIEW 8.5

TestStand 4.0

OS: Windows XP SP3

0 Kudos
Message 3 of 6
(3,490 Views)

I got the same behavior when I wrote an LV executable and called it from TS 4.0. None of the settings for Initial Window State seemed to change anything... I finally had to modify the properties of the actual VI being called by TestStand.

 

Add a property node to your main VI.

 

VI: FP.State  ( set this to Minimized ) as the first operation in the VI.  Rebuild into executable.

 

The call from TestStand to the executable will popup the window for a split second and then minimize it.  That is the best I can do right now!

 

Thanks,

 

PH

 

0 Kudos
Message 4 of 6
(3,470 Views)

Hi - I just tried this as well, and with the default settings, I agree that the Window State selection in TestStand is not affecting the LabVIEW executable. I will look into this a bit further, but in the meantime Teds suggestion is certainly a good workaround.

 

John M

National Instruments
Applications Engineer
0 Kudos
Message 5 of 6
(3,466 Views)

Yes, this is how I solved the problem for now, I have to add the window state in LabVIEW level instead of TestStand level. Thanks.

0 Kudos
Message 6 of 6
(3,464 Views)