NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Regain focus to TS2 running sequence.

hi everybody

i have a TS2 sequence with Labview 7 steps. Labview runs some windows application upon needs.
when the windows application ends, the Sequence is not focused and sometimes the Labview windows
opens (and focused),probably by system in spite of the fact that it was minimized , and covers the sequence running steps.


how to cause the running sequence to gain
focus, and to prevent the labview window to cover it

please your advice

regards
Simon.I
0 Kudos
Message 1 of 5
(3,269 Views)
Hello Simon,

Are you using TS 2.0 or 2.01? I have tried to replicate the problem that you have described, but I am not able to. Does this happen for all VIs that get called or just some?

There are two ways that a VI front panel is shown during a TestStand execution: 1) In the Specify Module dialog box, "Show VI Front Panel When Called" is enabled or 2) In the VI properties, under window appearance, in the customize options, "Show Front Panel When Called" is enabled. But when I try both methods, TestStand still becomes the active window after the VI completes (even if it does not close).

Of course, as long as the VI is running, it is the active window. You can change that programmatically within the VI by using VI Server to access the properties of the VI itself. Place down a property node. Right-click on it and navigate to "Select Class >> VI Server >> VI". Then right-click on the property and navigate to "Properties >> Front Panel Window >> State". This property allows you to programmatically minimize the front panel of the VI.

Regards,

Aaron B.
National Instruments
0 Kudos
Message 2 of 5
(3,239 Views)
hi Aaron
i am using the TS2.01
and and the VI step is executing a window application using the "command exec" control

the problem exists only the first time of running the sequence , after i minimize manually
the Labview window it is ok, NOT the VI is shown only the LAbview window. (see attached file)

please advice

Simon.I
0 Kudos
Message 3 of 5
(3,233 Views)
Hi Aaron,

This is an old problem with TS2.0.x. There isn't any way around it when you are using the LabVIEW developement system. It happens when you invoke the first step using the labVIEW adapter set to the use the developement system.
You might try launching labview first before you execute your step.

Not sure if this has been resolved with TS3.x.

I think the only way around it is to set the labview adapter to use the labview activex server.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 5
(3,229 Views)
thank you both
Simon.I
0 Kudos
Message 5 of 5
(3,219 Views)