NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Testexec.exe hangs on Terminate

TS version 2.0.1f1; LabVIEW version 6.1

When running the example (slightly modified)sequencefile 'FailureHandlerExample.seq' found in Examples\Callbacks\PostStepFailureCallback, in the LabVIEW version of the Operator Interface the testexec.exe would hang when the Terminate button is pressed.

The Only difference with the supplied version, is the MessagePopup step in the Sequence SequenceFilePostStepFailure has been set Modal.

The first execution has also been ok.
When the Step Failed Dialog appears, the Terminate button is pressed.
When the results appear the Restart is pressed.
Again when the Step Failed Dialog appears the Terminate button is pressed again.
The testexec.exe may hang after pressing the Terminate button the s
econd time but usually within four restarts.

This hangs on Win2000, Win NT, Win98 machines. Only appears to be with the LabVIEW IO. I have tried with the VB and CVI version and these do not hang.
If the Modal setting is removed from the MessagePopup step, then the testexec.exe does not hang.

I any clues?

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 1 of 7
(3,977 Views)
Hi
I was only able to reproduce a known hang issue when you shut down the testexec after showing a messagePopup which is modal ie The OI hangs when you click on file->exit . This does not hang if we do not set the messagePopup to be modal.


The fix for this problem is the change when the appmain window is closed.
I have attached the fixed VI which fixes the problem.

Hope this helps
Regards
Anand Jain
National Instruments
0 Kudos
Message 2 of 7
(3,977 Views)
Hi Anand,

Tried your VI but I still get this hang condition. I wasn't hopeful, as I could obtain the hang condition by running TestStand - Sequence Display.vi in LabVIEW rather than as part of testexec.exe.

I have attached three sequencefiles.
Sequence File 1. After several Restarts, textexec.exe would hang after pressing OK at the MessagePopup.
Sequence File 2. I have moved the Terminate out of the PostStepFailure callback to the MainSequence. This doesn't hang testexec.exe.
Sequence File 3. This is the same as Sequence File 1 but has an extra step in the PostStepFailure. I perform a Thread.PostUIMessage after the MessagePopup and before the Terminate, this forces a OI Update Display. So far I haven't had a hang of the testexec.exe.


Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 3 of 7
(3,977 Views)
Hi
We have reproduced the hang here and will try to find out what is happening. It looks like a timing issue between when the dialog is dismissed and the execution is terminated.

I will post an update about the problem once I have looked into it some more.
Regards
Anand Jain
National Instruments.
0 Kudos
Message 4 of 7
(3,977 Views)
Hi Ray,
This problem does not happen in TestStand 3.0.
A workaround for 2.0.x is to terminate the execution using a none adapter Pass/Fail step.

1. Insert a none adapter step
2. Set the post action of the step to "Specify custom Condition"
3. Enter the "custom condition expression" to "True"
4. Change the "On Condition true" to "Terminate execution"

I have tested this workaround for NT and 2000 and it seems to work fine.

I have attached the bmp file showing the custom post action and also the modified sequence file with the changes in 2.0.1

Hope this helps
Regards
Anand Jain
National Instruments.
0 Kudos
Message 5 of 7
(3,977 Views)
Hi Anand,

Tried your solution and so far have not had any further problems. Thanks.

The question about TestStand 3.0 - was that using the New Style or Old Style or both LabVIEW OI?

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 6 of 7
(3,977 Views)
Hi Ray,
I have tried both the newStyle and the OldStyle of the OI and did not see this hang.

Regards
Anand Jain
National Instruments
0 Kudos
Message 7 of 7
(3,977 Views)