04-09-2013 03:32 AM
Hi!
I write a labview program with OOP(Object Oriented Programming) method, and program is fine. But when i build it to exe, the labview builder show warning message:"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."
I know it is certant that file name duplicate when use "Class", and how can i do not show the warning message when build.
Solved! Go to Solution.
04-09-2013 11:12 AM
Which version of LabVIEW are you using?
04-09-2013 01:54 PM - edited 04-09-2013 01:55 PM
Pre-LabVIEW 2009 an EXE was a flat directory. All VIs controls and dependencies were in an EXE and there were no folders within that EXE. Because of this you can't have 2 files in your project with the same name (because they can't go into the same directory without overwriting one). Starting in 2009 to fix this NI allowed EXEs to have directories so VIs can have the same name on disk, but in memory they can have a different name, by appending the class, or library name to it. So you can have PowerSupply.lvclass:Init.vi and CAN.lvclass:Init.vi both on disk just as Init.vi
In newer versions of LabVIEW you can use the old file structure by setting the 8.x Layout to true in the build specification of the EXE (under Advanced), but you really don't want to do this because of the colision issue you are seeing.
EDIT: and it looks like your code was saved in 8.6 before that feature existed.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-09-2013 07:40 PM
I rebuild it on labview 2011without 8.x layout, it have not warning message, the problem has been solve,thanks!