02-11-2009 08:31 PM
Solved! Go to Solution.
02-11-2009 09:48 PM
02-11-2009 10:02 PM
Unfortunately, an Error 6 is a catch all category for all sorts of file IO errors that LV doesn't know how to handle. For example, while it doesn't sound like your problem, trying to access a file that resides on a network drive that isn't currently mounted can generate an Error 6.
Have you tried saving the file to a different location?
If you restart your computer and run the VI does it generate the error the very first time you run it?
Can you post your code - or at least a subset of it that demonstrates the problem?
Is Excel open when you are running the code?
Also, as a test try modifying your code so it has a unique name every time you save it.
Mike...
02-12-2009 11:48 AM
02-12-2009 08:23 PM
My guess is that the ActiveX code is not closing the file or shutting down Excel when it finishes. If you don't explicitly stop it Excel will continue running in the background which can cause all manner of weirdities.
Something you might want to consider is changing the way you are access the spreadsheet file. You can also read/write xls files using ADO.
Mike...
02-12-2009 08:28 PM
02-12-2009 08:33 PM
That is very likely, but Microsoft has rewritten the Excel interface at least twice since V6 was current - which is why I like to avoid the whole issue and use ADO to interact with Excel files. It's even faster...
Mike...
02-13-2009 12:00 AM
Hi Deppangtc,
You have an interesting problem. I would like to see some files so that I can replicate your problem here. Which version of LabVIEW and OS are you using? Have you noticed this in previous versions? Or with any other versions? Were you able to get this working properly in older versions?
Mike,
Thank you for your solution and suggestions on this one!
02-13-2009 11:06 AM
02-16-2009 02:11 PM
HI Deppantgc,
I requested your files because that would make the problem replication smoother. In situation like these, there are few triggers and circumstances that cause the error message to happen. In order to replicate the problem, it is, often, best to start with the file that causes the issue. This way, I can use your files, replicate the problem and test it out on different systems. If you can post what exactly your application does and the files themselves, it would be easy for me to file a report/research this further.