LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error code 5 when copying file

Hi everyone,
Im running an application where I stream string data to a file using the 'Write to Spreadsheet' VI. The file is written in .csv format. When I try to use the copy and paste function to copy the file im writting to, i get the following error.
 
Error 5 occurred at an unidentified location
Possible reason(s):
LabVIEW:  File already open.
=========================
NI-488:  Command requires GPIB Controller to be System Controller.
 
Any ideas why this is happening when Im trying to copy the file, or how it can be avoided?
 
Thanks,
David
0 Kudos
Message 1 of 5
(3,964 Views)

When you say your are using the copy and paste functions, is that in LabVIEW? Are you using vi's to do this? Or are you simply trying to copy and paste the file you just created?

Also, what version of LV are you using?

0 Kudos
Message 2 of 5
(3,914 Views)

I am also having the same problem. This pops up randomly on my software. This software is running on a procustion machine in a solar plant. It happens randomly. I am writing my log file to a text file and I also write data to MSMQ. I am not trying to open any files????? PLEASE HELP CUSTOMER IS NOT HAPPY.

0 Kudos
Message 3 of 5
(3,519 Views)

Can't say without looking at some code...

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 5
(3,512 Views)

Hi HughQuinn!  You mention that you are trying to write data to text files and MSMQ.  In LabVIEW, in order to write to a file, a certain sequence has to occur.  If you tunnel down into the "Write to Spreadsheet.vi" you will see that there is an "Open/Create/Replace File" function.  For LabVIEW to be able to write anything to a file, the file must first exist and be open.

 

Can you provide more information about how you are writing to this text file and MSMQ?  It's possible that by using one of the high level vi's that the program is trying to creat multiple instances of the same filename in the same directory.  If you can provide some more information, it may be very helpful!

0 Kudos
Message 5 of 5
(3,500 Views)