03-09-2009 07:50 AM
Solved! Go to Solution.
03-10-2009 05:00 AM
Hi mo786,
Good Morning and I hope your well today. Thanks for the post.
Firstly, this seems more of a LabVIEW forum question then a DAQ question - but I am happy to support you here all the same.
This error message has many causes so I will try to summarize my suggestions below,
1. Check File Permissions:
a. Make sure you logged in as Admin
b. Try saving the build files to your user data (Desktop) rather than say Program Files - which could be READ ONLY.
2. VIs need to be in the Same version of LabVIEW:
a. This tends to happen more when users have upgraded from a previous version of LabVIEW.
b. To try to retify this I would suggest saving all VIs manually, including any your dynamically call. (This is known as Mass Compiling),
c. You could try repairing LabVIEW by going to control panel>>Add/Remove Programs>>NI>>LabVIEW 8.6>>Repair.
3. Unselect "Copy Error code files"
a. This ought to remove the error as the path is to do with the errors.txt file.
b. Follow the knowledgebase article below on how to remove this option,
Error 8 With Application Builder When I Create an Executable in LabVIEW 8.5/8.5.1
http://digital.ni.com/public.nsf/allkb/BAF0ACFA708F1D19862574C8005248E7?OpenDocument
4. Try building a new project, and saving it in a different directory.
5. Similarly try building a simple project with the simple error handler in it - does it still error?
Please try these suggestions and let me know how you get on,
Hope this helps.
07-03-2009 02:44 PM
Hi Hillman,
I have a similar situation here so I thought I would just reply to this thread.
I recently upgraded my LabVIEW 4.1 to 5.1.1 in Windows 2000 machine.
My VI stores data to a file every 40 pulses. When I start running it, after 40 pulses, rather than saving the data, it shows below error message.
Error 8 occured at opening file
possible reasons
LabVIEW: File Permission Error
or
NI-488: DMA hardware error detected.
Also, When I colse the VI, it is asking me to save several subVI's like GPIP error report.vi, unlisten.vi etc.
(There are currently 15VIs with unsaved changes remianing to be removed from memory.)
When I do that, it says,
File Permission error occured.
Can not save VI " CAMAC Test CAM.vi"
or sometimes it shows,
Can not save VI "arraymean.vi". The VI already exists and you do not have permission to replace it.
As you suggested, I tried to save each VI separately (mass compiling). But I still see the same error message.
Am I missing something here? could you please help me..
I am attaching the VI for your convenience.
07-03-2009 06:57 PM
Your question is not even remotely similar to the original post and sorry, but I find your statement "I recently upgraded my LabVIEW 4.1 to 5.1.1 in Windows 2000 machine." hilarious.
You did not post a single one of the subVI so I have no idea what you are trying to save. Are these VIs that you wrote? Are you logged on as admin or a user? Did you check the file properties of the VIs to see if they are read only?
And for goodness sake, get rid of all those local variables. I see at least one race condition. And you might also seriously consider a supported version of LabVIEW and windows.
07-03-2009 07:55 PM
Hi Dennis..
Thanks for the quick reply. Sorry for so lengthy message yet not so informative. My problem is partially solved. Some of the VIs were read only now I changed it and I could save them. Let me explain more clearly what I am doing.
Right now, I have LV v5.1.1(just upgraded from 4.1) running in my Windows 2000 OS. I have LAB-PC+ DAQ card to control some motors. I also have PCI-GPIB card connected to Lecroy 8901 GPIB interface for data aquisition.
I have NI-DAQ 6.6, NI-VISA, NI-488.2 for windows 2000 installed in my system.
The subVIs are to communicate with PCI-GPIB card and Lecroy GPIB interface. Those VIs are belongs to two main llbs which I got from NI-488.2 for windows. Now I could save them.
But, when I run the program, it could not save the data to the file but the following error pops up at the end of the cycle.
Error 8 occured at opening file
possible reasons
LabVIEW: File Permission Error
or
NI-488: DMA hardware error detected.
-My hardware is properly installed and it should not be the problem.
Can you please tell me what am I missing? I did try running the program logging in as Admin and the user who has admin rights but samething.
P.S: Even I found it helarious when I was "upgrading" it 🙂
actually I just aquired the experiment and the program from a passing out graduate student in my lab. Thank you for pointing out my cumbursome program. I need to cleanup littlebit.
Due to budget constraints, I dont think I can upgrade my system any further :(.
I have to adjust with what I have.
07-04-2009 12:48 PM
Hi Dennis..
Should I post this problem in different thread for better resolution?
07-04-2009 04:26 PM
07-04-2009 06:58 PM
I attached the all SubVIs that I am using.
There is no problem in those VIs now.
The only problem I am facing right now is that, when I run the program, that error is popping up.
Thank you Dennis for your time
07-05-2009 08:44 AM
07-06-2009 02:01 AM
Thank you very much Dennis..
My problem is solved. You are right.. I gave different file names as the the path and it worked fine.
Sorry for so much confusing code. Now I am working on making the code efficient and neat.
Thank you once again.