LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My computer doesn't shut down after running Labview 6.1

I am working in Labview 6.1. when I load Labview, work in it and quit after some time, I always face Windows shutdown problem. If I don't run Labview, the Computer shuts down perfectly. Please guide me what to do.
0 Kudos
Message 1 of 3
(2,772 Views)
Hi,

You'll probably have a LabVIEW item in the taskbar that does not disapear
when you close LabVIEW.

My guess is that you have a LV program that uses a lot of reference. Those
references are not closed properly, an LabVIEW needs a (exponentially
growing) time to close them. A reference cannot be closed, if dependancies
(child refs) are open, so every ref needs to be checked against every ref.

The computer will shut down eventually, but could take days (literally).

E.g. You change the title of a VI: Open ref to vi, change the title. Closure
might not seem nessecary, because it is the same VI, but the next time it is
called, the ref is changed, and the old one is still in memory. This is
typpically done in a MMI loop, so memory fills fast. The only thing y
ou can
do, is close all opened references. Thia is very tricky, esp. when you are
using a lot of ActiveX stuff.

You can check if this is what is happening on your system:

+ After you close LV, try starting it again. This sould not succeed

+ Open Task Manager and see if the memory that LV needs grows when running
the VI's. If this is the case, you have a "memory leak". The memory will
grow with anything from 1kB a day to 1.5MB per second, depending on the
situation.

+ If this is happening, the program will run slower and slower. The MMI will
get 'sticky'. After a while you'll hear the hard disk swapping memory, and
finally the system will hang.

+ Check if the system shuts down after running your code shortlly. Check if
the shutdown takes longer when the program has run longer.

Regards,

Wiebe.

"pmital" wrote in message
news:50650000000800000027690000-1031838699000@exchange.ni.com...
> I am working in Labview 6.1. when I load Labview, work in it and quit
> after some
time, I always face Windows shutdown problem. If I don't
> run Labview, the Computer shuts down perfectly. Please guide me what
> to do.
Message 2 of 3
(2,772 Views)
I am also wondering if something is still running. I would also suggest checking the Task Manager. Now, I do wonder whether you are only starting and closing LabVIEW or whether you are opening a VI. If you are opening a particular VI each time and then closing, it could be that the VI is corrupt and is corrupting LabVIEW. If this is the case, take this VI apart until it no longer causes this behavior and see what is causing it.

If, on the other hand, you are only opening and then closing LabVIEW, I would suggest reinstalling LabVIEW and see if the behavior still exists. It is a strange issue, but we'll see where these tips get you.
J.R. Allen
0 Kudos
Message 3 of 3
(2,772 Views)