NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent TestStand from closing LabVIEW FrontPanels after execution completes

Our test engineers often debug by opening a VI's front panel from a sequence during edit time, then running that sequence and inspecting the VI's input and output parameters afterwards.

At least that's what they often did in TestStand 2016.

In TestStand 2020, after the sequence completes, the VI front panel automatically closes.

(Running in LabVIEW Development System with a non-reentrant VI)

After reopening the front panel, the values are still there (so the VIs do not get completely unloaded), but reopening gets rather annoying when you have a setup of multiple VIs you want to compare.

 

In TestStand 2016 the VI front panels stayed open during and after execution.

 

Did this behavior change or did we accidentally change a configuration for TestStand 2020?
Is there a way to change this behavior?

 

Thanks.

Stefan

 

Message 1 of 6
(950 Views)

I am experiencing the same issue and would like to know how to prevent an asynchronously called .vi from closing when stopping it from running.

0 Kudos
Message 2 of 6
(610 Views)

Hi, 

 

If you are referring to this issue 1498966 from TestStand 2020 Bug Fixes - NI, it has been fixed in TestStand 2020 f1 patch. 

Regards, 

Anand Jain

NI

0 Kudos
Message 3 of 6
(600 Views)

Now I have installed "TestStand 2020 f1".

 

The problem still exists:

After the TestStand execution stops (=background is getting grey) all the LabVIEW Frontpanel window were closed by TestStand.

0 Kudos
Message 4 of 6
(530 Views)

Detail: TestStand 2020 f1 closes only that Vis which were called during the execution.

Not called Vis will stay open.

0 Kudos
Message 5 of 6
(523 Views)

Here is a Workaround 🙂

 

Part 1: Put this into 'Cleanup' of all your sequences and add a precondition:

RunState.CallStackDepth == 0

Greil_0-1696592477122.png

 

Part 2: SubVI will do the "re-open".

The small delay is needed to wait until TestStand has finished closing windows.

Greil_1-1696592770491.png

 

Thank You for Kudos.

0 Kudos
Message 6 of 6
(515 Views)