NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand hangs up.

I'm occassionaly seeing a problem where TestStand seems to hang up. It appears to happen after a call to a LabVIEW VI. I think the VI has finished execution but then TestStand does not continue to the next step. What I've had to do is use Task Manager to kill LabVIEW. It has happened at different steps and never when I've set a break point to step into the VI. I'm using TestStand 1.0.3 and LabVIEW 6.0.2.

tia

p.s. Anyone know when TestStand 2.0 will ship?
0 Kudos
Message 1 of 10
(5,280 Views)
Hi,

I've had this happen. It may not be the same problem.

Mine was when I displayed a front panel as a dialog panel and sat waiting for a response and when I did press the OK or Cancel button I found that LabVIEW and then TestStand had stopped responsing.

My problem was the VI 'TestStand - Check for Stopping Execution.vi' in my while loop.

I had to remove this from my VI and all my problems were solved.

This Problem I reported a while back to NI and they reported back that the problem didnt occur with LabVIEW 6.0 only 5.1.1.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 10
(5,280 Views)
TestStand 2.0 started shipping last week. If you have not already seen all of the new features during our beta testing, I think you will be very pleased with this new version. Enjoy!!

Richard McDonell
Product Marketing Engineer
National Instruments Corp.
www.ni.com/ask
0 Kudos
Message 3 of 10
(5,280 Views)
I am creating NI Knowledgebase article 28989AAT that will contain the following information.

LabVIEW may hang when your client application runs VIs using the LabVIEW ActiveX automation server that is provided by the LabVIEW 6 development environment. This hang occurs without error and may be misinterpreted as a hang in your client application.

This problem is restricted to the LabVIEW development environment. It will not occur if your client application calls into a LabVIEW ActiveX automation server provided by a LabVIEW executable that you created with the LabVIEW Application Builder.

Typical Scenario:
This problem was first detected when running multiple TestStand sequences in parallel that in turn ran LabVIEW VIs. In this case, TestStand, the client application, was running a large number of VIs using LabVIEW ActiveX automation server. Eventually all sequences appeared to hang in mid-execution, at a step that called a LabVIEW VI. The problem occurred anywhere from 20 minutes to 8 hours after initiating execution of the sequences. See the suggestion TestStand solutions below.

1) Before your client application runs VIs using the LabVIEW ActiveX automation server that is provided by the LabVIEW 6 development environment, open the attached Thread EC Fix.vi. When this VI is loaded it in turn loads ThreadECs.dll into LabVIEW's memory space. ThreadECs.dll must be located in the same folder as Thread EC Fix.vi. This DLL must be loaded in the memory space of the LabVIEW application before and while you run VIs using the LabVIEW's ActiveX automation server that is provided by the LabVIEW 6 development environment.

Cause:
The LabVIEW 6 development environment is unaware that it should appropriately release certain resources required to run a VI using the LabVIEW ActiveX automation server. Since the resources are finite, LabVIEW eventually hangs when the resources are used and not released. ThreadECs.dll detects and notifies LabVIEW when these resources should be released.

2) If you are distributing your application, you may not have the LabVIEW development environment installed on the target machine. In this case, you might use a LabVIEW ActiveX automation server that is provided by a LabVIEW executable you created with the LabVIEW Application Builder. The LabVIEW executable uses the LabVIEW run-time engine, which does not have the problem described in this knowledgebase article.

3) You can use LabVIEW 5.1.1 or earlier, under which this problem does not occur.

4) If you encounter this problem when using TestStand, as described in the Typical Scenario above, we recommend that you call Thread EC Fix For TestStand.vi from the first step in your process model entry point. Copy the contents of the attached zip file to \Components\User\Models. Select the LabVIEW ActiveX Automation Adapter from the adapter ring control of the TestStand Sequence Editor. Add an Action step to the Setup step group of both the Test UUTs sequence and Single Pass sequence within your process model. Configure each of these steps to call Thread EC Fix For TestStand.vi. This will ensure that Thread EC Fix For TestStand.vi and ThreadECs.dll are loaded into LabVIEW's memory space before any sequence is executed using the process model entry points, Test UUTs and Single Pass. If you are going to execute sequences without the process model entry points then you will need to add a similar step at the beginning of each sequence that executes LabVIEW VIs, to ensure that ThreadECs.dll is loaded in LabVIEW's memory space before your sequence executes. Typically after distributing your TestStand application, your sequences use a LabVIEW ActiveX automation server other than that provided by the LabVIEW development environment. In this case your distributed application will not encounter the problem explained in this knowledgebase article.
0 Kudos
Message 4 of 10
(5,280 Views)
Hi Nemo,

Will there be a tidier fix to LabVIEW either as a patch or as part of an update?

Ray
Regards
Ray Farmer
0 Kudos
Message 5 of 10
(5,280 Views)
Yes there will be, but not until the next release of LabVIEW. It would be nice if LV had a hook available to load a VI or DLL when it is launched. This way TestStand, or any other client of LV, would not have to bother loading the VI. Unfortunately this is not the case.
0 Kudos
Message 7 of 10
(5,280 Views)
Thanks for the info. This sounds exactly like what is happening to me. The stations where I'm seeing the problem are new and I still have LabVIEW development on them. I've installed the patch and it ran for about 6 hours yesterday whithout a problem, which is darn near a record. If I don't see a problem today, I can enjoy my weekend. Thanks again.
0 Kudos
Message 6 of 10
(5,280 Views)
Glad to hear it. Let us know if you are still running after the weekend.
0 Kudos
Message 8 of 10
(5,280 Views)
Hi,
I think I had the same hang up problems with TS2.0 and LabView6.02. After doing your fix it seems to run. But it seems to cause another problem: Now my Reports do no longer contain the Step.Results. As far as I can see the reportgen_txt.seq is not entered.
0 Kudos
Message 9 of 10
(5,280 Views)
Hi,

Do we know if this problem applies with LabVIEW 6.1?

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 10 of 10
(5,280 Views)