NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand execution stops sometimes

Hey Ofer,

The TestStand MessagePopup was actually built in CVI and thus I'm worried that some interaction between your DLLs might be causing this behavior.

 

A few questions and things to try:

 

1.  What are your adapter configurations for LabWindows/CVI in TestStand? More specifically, what are your settings for Step Execution, Execute Steps in an External Instance of CVI or Execute Steps In-Process? We want this to be set to External because this would make it less likely to have issues with the other CVI code.

 

2. Do your CVI DLLs make use of .UIR files or the LoadPanel and DisplayPanel functions?

 

3. One way to check and see if it is, in fact, your CVI DLLs that are causing this behavior is to try setting the Run Mode of all of your CVI DLL steps to Skip and see if it still hangs.

 

Lars

0 Kudos
Message 11 of 58
(2,947 Views)

Hi:Lars:

1. My adapter configuration is 'Execute Steps In-Process'.

2. Yes, My VI DLLs make use of .UIR files and the LoadPanel and DisplayPanel functions .

 

I can  to skip the DLL's & in the sequence & run it in a  loop, but it will be very difficult to come into a conclusion because the problem is so rarely occurs.

Maybe it will be preferred to create a customized Popup with Labview?

Ofer

0 Kudos
Message 12 of 58
(2,929 Views)

By the way:

When closing the Pc I got this message:

"

Warning:
     Your system contains the Microsoft Tablet PC Platform Component, skchui.dll
     (version 1.0.1038).  Microsoft has reported that this version of the component
     is known to cause GDI memory leaks in applications that host the Microsoft
     Internet Explorer control. Please refer to the TestStand readme file for more
     information.

"

Is there any connection to my problem?

Operation system is win 2000.

Thanks,

Ofer

0 Kudos
Message 13 of 58
(2,926 Views)

Ofer_O

To answer your question - yes,it could be the issue.

 

If you run out of GDI resources, dialogs could disappear or fail to appear.The version of skchui.dll on your machine causes GDI leaks. It can be easily fixed by following the instruction specified in the readme. I would suggest following the instructions given in the readme and see if this resolves your issue.

 

Regards

Anand Jain

National Instruments

0 Kudos
Message 14 of 58
(2,925 Views)

Hi:

Can you tell me where exactly is the location of the Readme file?

Thanks,

Ofer

0 Kudos
Message 15 of 58
(2,896 Views)
The Readme.html file is located on the TestStand CD and in the <TestStand>\Doc directory. 
0 Kudos
Message 16 of 58
(2,886 Views)

Hi,

 

I have the same problem : I use TestStand MessagePopup with images. Sometimes when I click on "Ok" the popup disappear but the execution is suspended and there is no way to continue the execution.

 

I am using TestStand 4.0.1, operating system windows 2000.

My code modules are DLL written with LabWindows/CVI (DLL adapter).

No multihtreading.

I use custom popup but there is no popup displayed when the default occurrs.

 

Josh, I did not find the bug fix 447DGAIF in the TestStand readme file.

Are you sure the bug was fixed in TestStand 4.0 ?

I do not use other popup at the same time but maybe the bugs are related ?

 

skchui.dll is not present on my PC.

 

Ofer, did you find a solution ?

 

The bug is quite serious for me because it stops the production deployment (the test hangs and cannot be used in production).

 

Thanks.

Bruno

0 Kudos
Message 17 of 58
(2,776 Views)

 

I found a comment in the file \TestStand 4.0\Components\NI\StepTypes\MsgBox\MsgBox.c at line 2094 :

 

    // This call to set the thread's property "ExternallySuspended" has to be the
    // last thing in this function.  If it is not the last thing, it could potentially
    // suspend the thread indefinitely making the sequence editor or OI be suspended
    // indefinitely as well.
    if (thread && externallySuspendedSet)
            TS_ThreadSetExternallySuspended (thread, &errorInfo, prevExternallySuspended);

 

I don't understand why the property has to be the last thing in the function, and how does it works.

But the consequence (sequence editor or OI be suspended indefinitely) is what I see.

What is the condition that can occur to make seqedit suspended indefinitely ?

 

Bruno

 

0 Kudos
Message 18 of 58
(2,772 Views)

Hi Bruno:

I followed the instructions at the readme file regarding to skchui.dll.
I realy don't know if I found a solution to the problem because it rarely occurs. Until now it did not occur.

Ofer

0 Kudos
Message 19 of 58
(2,740 Views)

Hi Ofer,

 

Thank you for your response.

 

Glad to see that you (maybe) found a solution.

But this file is not the cause of my problem (it is not present).

 

Could anyone help me ?

 

Bruno

0 Kudos
Message 20 of 58
(2,718 Views)