07-18-2012 09:29 AM
Hello,
I'm almost finished with a project and I wanted to create the executable; however, I keep coming across this warning. When I build it these I get errors related to the warnings below. I know that it has to do with the NI_Report class. Since I'm only using the ones for excel and spreadsheets, I deleted the ones of word and http, but that just made things works. Bellow you can see the description of the Warnings before the executable is built. I also attached the subVI the is related to the NI_Report class.
If anyone can help me with this I will greatly appreciate it.
Thanks,
Jose
Warning:
LabVIEW prevented a file name collision during the build. Duplicate file names cannot be copied to the same destination. You can rename files as part of the build process to avoid name conflicts.
The following files were moved to a unique location:
C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\Utility\NIReport.llb\Append Control Image to Report.vi
C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\Utility\NIReport.llb\HTML\Append Control Image to Report.vi
C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\Utility\NIReport.llb\Append File to Report.vi
.
.
.
.
C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\Utility\NIReport.llb\Excel\Set Report Orientation.vi
07-19-2012 04:52 PM - edited 07-19-2012 04:53 PM
Greetings, Jose;
When you say that you have deleted the word and HTTP ones and it made things works, do you mean that it allowed it to work or that it made it worse ?
I did some research on the problem at hand and it seems that the following tutorial deals with the issue ;
http://digital.ni.com/public.nsf/allkb/2AE85CF95217E60786257540000D818C?OpenDocument
Does that help?
Simon P
07-20-2012 09:17 AM
Simon P,
Yes I meant to say that when removing the Word and HTTP files it made things worse. Thanks to the tutorial, it helped a lot. It seems that it is true what the tutorial says that the warnings can be ignored; however, I'm not sure if this would be due to the same warning discussed earlier, but when the executable is built I get Error 7 Open File+.vi:Open File not found.
I'm checking out some blogs that discuss this very issue, but if by any chance you or anyone else thinks that in my case this error is due to the same warning I get when creating the Preview, please let me know what might do to fix this.
Thank you very much for the help.
Jose
07-23-2012 01:31 PM
Hello,
I decided to try something out and so I removed all NI_Report class related applications. I still get Error 7 Open File+.vi Open File not found. I guess it doesn't always have to do with the NI_Report class, still I can't figure out what else could be the cause or how to debug the Executable (the non executable VI runs perfectly).
If anyone can help me with this I would greatly appreciate it.
Thanks,
Jose
07-23-2012 03:20 PM - edited 07-23-2012 03:20 PM
Greetings, Jose;
Does that error still pop-up when you bring back the HTTP and Word ones?
In addition, are you able to create executables of other VIs? Finally, are you able to try to rebuild that very application on another computer?
Simon P.
07-23-2012 03:30 PM
Simon P,
Well I haven't brought back the HTTP or Word ones since I lost some the New Report.vi application in the process, I substituted them with a PDF report generator demo. From what I've read it is probable that the NI_Report class had nothing to do with me getting error 7. I suspect that it has to do with the SMTP protocol that I used to email the report, but I'm not sure yet. LabVIEW recommend to use the File explorer or a prompt. I'm not familiar with those.
I have created executables with other much more simpler VI's. This is my first "big" project. I haven't tried to installing the executable in other computer so I might try that and let you all know.
Any thoughts on what I share or suggestions, please let me know.
I really appreciate this,
Thanks.
Jose
07-24-2012 04:47 PM
Hey there Jose,
Did you try installing it in another computer in the end? If so, did it work out?
Also, why do you suspect the SMTP protocol to be the problem?
Cordially,
Simon P.
07-25-2012 02:00 PM
Simon P,
Yes I installed it in another computer. It did not give me Error 7, but it did give me a "not enough memory to complete operation" warning.
I suspected SMTP, because I thought it shared part of the library of NI_Report class, but I checked again and it doesn't. What I understand now is that the cause of this should have something to do with the Open/Create/Replace file or other Advance File Function... But I'm not sure yet.
Jose
07-26-2012 03:58 PM
Greetings, Jose;
Does the second computer have lesser specs than the first one, or does it have any difference that could be of note? As in, there would be no reason to believe the computer to not have enough, RAM, correct?
In addition, since the error might be related to the SMTP, any possibility it would have to do with the way the firewall is set up?
Finally, while I've found an article on memory being full, I believe it is not quite the same; it might still be of aid, however
http://digital.ni.com/public.nsf/allkb/C3C516C11184AF3F862571B5006B46E1
Cordially,
Simon P.
07-27-2012 04:21 PM
Simon P,
The second computer has more capacity than the first. I'm not sure why it would give me a memory issue, but I might have had the virtual PC with LV running in it. As well as other programs in the host PC.
As for the Open File+ errors. I think that when I create the executable, some of the supporting data is moved or is in an address that the executable does not see. I tried to make the VI find all supporting data by itself. I did this making the subVIs reedit the address starting from "Current VI's address"... I guess I have to figure out what files get lost after creating the executable and use a different method to get the supporting data..
Jose