06-09-2011 10:45 AM
A couple things to try that we've seen work for others getting this error are to uncheck the "Disconnect type definitions" and "Remove unused members of project libraries" options in the Additional Exclusions category in the Application Properties. You also may try to check "Enable debugging" in the Advanced category, but that might also make your application quite large.
06-09-2011 12:22 PM
I tried unchecking "Disconnect type definitions" and "Remove unused members of project libraries" but then the Build threw up:
ERROR 7
File Not Found: C:\Program Files (x86)\National Instruments\LabVIEW 2010\vi.lib\vision\Basics.llb\IMAQ Create
The missing file might be referenced by one of the libraries included in the build or by the file - splash.vi. To fix this issue:
- Open all Startup, Exported, or Always Included VIs, recompile them (CTRL+SHIFT Click the Run arrow) and save them to update their dependencies.
- Open all libraries included in the build and verify the existence and locations of referenced files. Also, try building with the additional exclusion option, "Remove unused members of project libraries", checked.
I looked in that directory and no such 'vision' folder exists.
I am now going to check "Remove unused members of project libraries" as the ERROR suggests and re-build. I'll let you know how things go.
06-09-2011 07:10 PM
SUCCESS!!!
After unchecking "Disconnect type definitions" and re-checking "Remove unused members of project libraries" I still got ERROR 1502. I then went through my Project, selected "Source File Settings" unchecked "Use Default Save Settings" & unchecked "Remove Front Panel" & "Remove Block Diagram". After a few iterations of modifying the "Source File Settings" (each time I tried a build & it failed it would tell me which VI was the cause of the failure) it finally worked. Hopefully this thread will be able to help someone out of the bind that I was in.
06-09-2011 07:22 PM
Thanks for posting that! That is great information to have on our end in case this particular error shows up for others in the future. I hate that you were getting this error to begin with, but glad that you're able to move forward with your project now.
06-28-2011 08:25 AM
In process of dealing with the 1502 problem. Experience also included what appeared to be a corrupt LV install as well. NI is telling me that executing code in a transition of a statechart that is set to execute on a RT target running VXWorks will cause problems. See here . The trick is figuring out how to fix/recover all that hard work.
Here's what worked in my case. This seems drastic but due to time constraints I had to hit all possibilities in one pass.
07-12-2011 04:00 PM
Hi,
If you search Error 1502 will find the following explanation from NI.
Error 1502 can occur if dependencies are placed in non executing case structures
In previous versions of LabVIEW you could place VIs in a case structure with a constant wired the the case selector. This would load the VIs at runtime. If you have this pattern and attempt to build an executable you could receive error 1502
Workaround: Don't use unreachable code
Reported Version: 8.6.1 | Resolved Version: N/A | Added: 04/20/2011 |
My fix instead of changing the vi, I simply on page "Additional Exlucsions" uncheck "remove unused members from project libraries". This will slow down the build a lot. It solves the problem.
Henry
07-18-2012 10:34 AM
Just for completeness, this error can also arise when using polymorphic VIs. I was able to resolve my error 1502 by following the comments in this thread and also unchecking the "Remove unused polymorphic VI instances" under additional exclusions.
07-26-2012 11:19 AM
I had the same problem. Don't ask me why but by turning "remove polymorphic instances" ON and deselecting "Remove unused members of project libraries". Both are in "Additiona exclsions" catagory my project compiled just fine.
Good Luck
09-27-2012 12:12 PM
I am able to build RT application (for cRIO) only when I tick "Disconnect type definitions". Ticks on "Remove unused polymorphic..." and "Remove unused members ..", Ctrl+Shift+Run recompilation didn't help.
I didn't try to move VIs to new project.
I didn't try to Mass Compile. I expect that Ctrl+Shift+Run recompilation recompiled everything what was in my project
But when I tick "Disable type definitions" I was able to compile it but my application was not running after cRIO restart.
After half-day I found that I am reading data from FPGA through same controls which is Type Definition. After FPGA code modification - disconnected control from Type Definition and FPGA recompilation (and RT compilation) Application is starting. Finally!
10-27-2012 06:55 PM