LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Restart when trying to write to Excel

Let me show you the vi Excel part. Hope it can help. Really thanks.
0 Kudos
Message 11 of 13
(477 Views)

Johan my friend, please tell me you are new to LabVIEW.  If you're not, then there's no excuse for using the nested Sequence structures, for not using subVIs, for the diagram size, etc. etc.

In any case, one of the problems I can see that may be the cause of the crashes is that you do not close your report references.  You call the New Report.vi about 12 times, but never call the Dispose Report.vi.  You must call the dispose for each new.  See how this is done in this example:  vi.lib\Utility\NIReport.llb\Dispose Report.vi. 

Better still, since you seem to be referring to the same XLS file everywhere, you could open a reference to it once, and pass around this reference everywhere, using a shift-register perhaps??

See if that makes any difference.

-Khalid

 

0 Kudos
Message 12 of 13
(474 Views)
Great thanks to you.
Yes, i am new to labview. All i have learnt is learned by reviewing others' code. i did not refer to any book. So i don't know what you mentioned before. But now, i feel appreciated.
i will check my vi as soon as possible.
thanks again.
0 Kudos
Message 13 of 13
(459 Views)