LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview does not release the memory used in Excel, even after Active X "Excel close file" AND close automation is executed.

Memory is only released after the VI is exited (via quit button) OR I kill the process in NT (with the VI still running). It is creating mega memory problems when opening and closing multiple large excel docs to extract cell values. Help.
Thanks.
LJ
0 Kudos
Message 1 of 12
(4,872 Views)
Check all your activeX references, and close them when you do not need them, and of course, quit Excel after you finish, else, instead of being invisible, it is in memory. If these all fails, check for errors in the error cluster after each operation, and if all this fails... well you could attach an example of your problem to see if I can recreate and solve the problem.
0 Kudos
Message 2 of 12
(4,872 Views)
Gorka Larrea wrote:
>
> Check all your activeX references, and close them when you do not need
> them, and of course, quit Excel after you finish, else, instead of
> being invisible, it is in memory. If these all fails, check for errors
> in the error cluster after each operation

I noticed the same problem & tried all those ideas.

Even after your LV code tells Excel to quit, it stays in memory. (You
can see that in Task Manager.) It is only closed when your VI stops
running, or your application quits. NI tech support confirmed that as a
bug & told R&D.

At least, that is true with LV 5.1 & Excel 2000 SR-1; I haven't tried
other versions.

Mark
0 Kudos
Message 4 of 12
(4,872 Views)
Well, thanks to god (or NI?) that doesen't happen under LV 5.0.1f1 & Excel 97. Good luck.
0 Kudos
Message 5 of 12
(4,872 Views)
This behavior is seen when you use the Invoke node Item/Index. In this case Excel won't exit.
0 Kudos
Message 6 of 12
(4,872 Views)
Jeff M. wrote:
>
> This behavior is seen when you use the Invoke node Item/Index. In
> this case Excel won't exit.

Thanks. So how would you recommend making Excel exit?

Best, Mark
0 Kudos
Message 7 of 12
(4,872 Views)
Jeff, don't know what version of LV you are using, but in 5.0.1f1 THAT is not true, I think some time ago I had some problem like that, but the problem was the value I was passing to item/index was not adecuate, and the error cluster made the exit function not to execute. Try checking the value passed to item/index in highlight mode.
0 Kudos
Message 8 of 12
(4,872 Views)
Make sure you have closed every reference
you created. As long as there is one reference isn't closed, the excel will not exit. There is the same problem in the example of LabVIEW.
If you can upload the file, I can check for you.
0 Kudos
Message 3 of 12
(4,872 Views)

I am seeing this LabVIEW problem in v2010.  Running a simple vi that opens an Excel report and then 'dispose report' will open and close Excel as you would expect but the Excel.exe remains in my task manager until i close down LabVIEW completely?

I attach the simple .vi

0 Kudos
Message 9 of 12
(4,151 Views)
Spoiler

i recognize the same problem with Labview2011.

 

es far as i see it has to do something with multiple times using item/index property node or something in this region.

 

cheers

 

0 Kudos
Message 10 of 12
(3,946 Views)