LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 8 occured at Open File

I seem to randomly get this error. I am running a rather complicated 'for' loop that runs about 1000 times. I get the following error somewhat sporatically. I think this has something to do with a file permission error, but I cannot find a way to fix this error, not can I make it consistently occur at the same time.

Any help?

Thanks a ton.
0 Kudos
Message 1 of 2
(2,857 Views)
Most probably another application (e.g. disk indexing, antivirus scan, backup, etc) opens the file and denies your application write access for a short time.

You can ignore this error retry since it for a short time. Another solution is to set the deny mode to "deny read/write" when you open the file. That is a setting on the "Open File" node. By default, LabVIEW opens file allowing simultaneous read/write access by other application. This is seldom required and wouldn't be a problem if the other application didn't lock the file for itselt the time it access it. Unfortunately, the high level File I/O VIs don't allow to set the deny mode on the file; you have to open the file using the "Open File" node directly.


LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 2
(2,857 Views)