LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sharing violation error after closing file

I am creating a text file using the "Write to Spreadsheet File" vi.  After creating the file, I cannot change the name, or open the file in XL because I get a "sharing violation" error.  Apparently Labview has not released the file even after closing it.
Only after the main vi quits is the file released for editing by others.  I have never seen this problem before using the Spreadsheet VI.  Can anyone provide some help or advice?

I am running Win2000 SP4.

Thanks.
Greg Whaley

0 Kudos
Message 1 of 3
(2,858 Views)

Hi Greg,

I can't reproduce this. I wrote a VI which should have caused this problem, but didn't. I attached it below. Give it a try and see if you have different results, of if something's different in your code that could have caused this.

Anyone else experienced this?

Jarrod S.
National Instruments
0 Kudos
Message 2 of 3
(2,843 Views)

Oh yeah,

I don't know why it would make a difference, since this VI hasn't been changed in a long time, but for the record I tried this in LabVIEW 7.1 and 8.

Jarrod S.
National Instruments
0 Kudos
Message 3 of 3
(2,840 Views)