LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What causes Labview to hang-up when exiting a VI?

Sometimes when I exit the main VI of my application, Labview hangs-up for a period of time which can last as long as 10 minutes. The Windows hour glass appears and I cannot do anything within Labview. The PC is not hung-up; I can view on the Task Manager that Labview is very busy doing something. When I go to the Task Manager, Labview becomes a white screen with no indications.  I can end Labview via the Task Manager and then restart Labview if I don't want to wait for Labview to come back. I have also noticed this behavior with the executable for a stand alone application. I cannot see anything in the application code that causes this situation. 
 
I am looking for assistance to prevent this hang-up from occurring. I have attached my project to this message. The main VI is             MotorTest 3_20_08.vi
 
Thanks.  
0 Kudos
Message 1 of 2
(2,619 Views)
It depends on how you exit your VI.

If you use the Stop LabVIEW primitive their will might be a lot of garbage collection going on. If the user closes the last VI window, the same is going to happen unless you handle it correctly.
If you use hardware (I assume you do by the name of the zip), it is important to close all references, dll's and other funky stuff you might be doing.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 2
(2,604 Views)