11-04-2010 09:18 AM
When I build EXE from LV source, I got error 1502, Here is the detail:
E:\NIIFRIO\NI-5640R VIs\subVIs\ni5640R ADC read_write.vi
Invoke Node in AB_Source_VI.lvclass:Close_Reference.vi->AB_Build.lvclass:Copy_Files.vi->AB_Application.lvclass:Copy_Files.vi->AB_Build.lvclass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Engine_Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.ProxyCaller<APPEND>Method Name: <b>Save:Target Instrument</b>
Possible reason(s):
LabVIEW: Cannot save a bad VI without its block diagram.
The "ni5640R ADC read_write.vi" is copy from an example of 5640R. If I build this vi separately, it is OK. I have recompiled all the VIs in my project and nothing helped.
So what can I do now?
11-05-2010 02:47 AM
Hi!
I had a similar problem a couple of weeks ago using LV2010.
It was probably due to a case structure with a constant wired on the selector.
Removing it was enough to let me build the executable...
Let me know if this helps,
Marco
11-07-2010 09:27 PM
12-20-2010 08:58 AM
Had the same bug once (lv85). Had to build exe with the problem vi front panel opened. Or with the checkbox "modify project library file after removing unused members" removed.
01-06-2011 12:20 PM
I got bit by this bug when converting to LV2010 (from 8.5). Took me a while to figure out the specific problem because it takes about 10 minutes to compile my exe and I had to try multiple times to get it plus trying other things such as building an exe with just the offending VI but with no success.
Turns out the problem went away when I changed the case selector with a constant connected to it into a diagram disable structure.
Bruce
01-06-2011 07:46 PM
I update my LabView from 8.6 to 8.6.1. It seems OK now.
I do not find the problem and still worry when this will happens again.
03-15-2011 06:43 AM
Thanks Marco,
Had the same problem and again it was a case structure wired up with a constant. I would mark it as a solution although I am not sure if it is the same in all instances.
This was moving the project from a 2009 to a 2010 build.
Craig
03-17-2011 01:33 AM
04-19-2011 12:52 PM
I had the same problem - saw your post - removed the hard wired case structure and my problem went away.
Much thanks!
12-13-2012 10:31 AM
Also see here:
http://forums.ni.com/t5/LabVIEW/bleep-you-error-1502-shakes-fist/m-p/2252430