LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build Errors 1502

When I build EXE from LV source, I got error 1502, Here is the detail:

 

 

An error occurred while saving the following file:

 

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? 

0 Kudos
Message 1 of 11
(5,856 Views)

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

 

Message 2 of 11
(5,835 Views)
Hi: I check the vi and find there is no case structure in this specific vi. I build the vi only it is successful. And I also build some simple examples that contains this vi, it is successful. If I remove the block diagram of this vi and only keep the input/output, it is successful. My platform is LV 8.6 Is there any suggestion ? Thank you very much.
0 Kudos
Message 3 of 11
(5,813 Views)

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.

0 Kudos
Message 4 of 11
(5,612 Views)

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

0 Kudos
Message 5 of 11
(5,528 Views)

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.

 

0 Kudos
Message 6 of 11
(5,512 Views)

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

LabVIEW 2012
0 Kudos
Message 7 of 11
(5,311 Views)

I had the same problem - saw your post - removed the hard wired case structure and my problem went away.

 

Much thanks!

0 Kudos
Message 9 of 11
(5,168 Views)

Also see here:

http://forums.ni.com/t5/LabVIEW/bleep-you-error-1502-shakes-fist/m-p/2252430


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
0 Kudos
Message 10 of 11
(4,842 Views)