LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build error 1502 - but no broken VI

Still in 8.2.1.
Joe Gerhardstein
Viasat
Certified LabVIEW Architect
Certified TestStand Developer
Certified Professional Instructor
http://www.viasat.com
0 Kudos
Message 11 of 15
(3,075 Views)
Still in LabVIEW 8.5.......Don
0 Kudos
Message 12 of 15
(3,050 Views)
Message Edited by Sherrie R. on 01-21-2009 02:31 PM
0 Kudos
Message 13 of 15
(2,756 Views)


I have this error in LV 8.6.1. The application has been running fine from within the development suite, but
building the application simply crashed LabVIEW - having the task manager to stop it. At this time the
builder says saving .... (see picture attached) which left me assuming a broken VI deep within NI's
libraries.

Note the DONE button is enabled and closes the window, but no application has been built. Usually if the done button is enabled, the build says somewhat like 'build located in...'

After 'enabling debugging' and uncheck 'Remove unused members of project libraries' in the build properties and having the main vi to build open during the build I got the 1502 error pointing to a unused VI within my application which has been broken due to a sub-vi's user interface change this is VI using.

 

Error 1502 occurred at
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

possible reason(s):
LabVIEW:  Cannot save a bad VI without its block diagram.

Note that if I tell the builder NOT to remove the unused (broken) members the build succeeds!

In between I've removed this bad VI's, and had been able to build without the 'enabling debugging' in the
build. But if I re-enable the 'Remove unused members of project libraries' LabVIEW again hangs at the end
of the build.

Keeping 'Remove unused members of project libraries' on is inacceptable as this increases the size of the
executeable from 3.2 to 29 MBytes (debugging on) and still 13 MBytes (debugging off)! And this is an elping application, not the main one. THis increased from 4.5 to 17 MBytes.

 

Any ideas? I'll try to cut down the example, but this will be a difficult process as I expect the Builders display is not pointing to the right VI (less frequently updated). And if, it's deep within NI's device drivers.

Regards,

   Roland

0 Kudos
Message 14 of 15
(2,582 Views)

For my project I've solved this issue 'by accident'. In fact one VI has not been able to be loaded if within a project, but loading and running without problems if opened outside a project.

Starting a support request regarding this I had been pointed to a bug in one of the LavVIEW's configuration files.

 

 http://digital.ni.com/public.nsf/allkb/84E2D71B58E22C87862573FB007E594C?OpenDocument

 

After fixing this bug related to the NI-845x (usb-connected I2C/SPI interface). The project compiles fine!

Maybe there are related problems in other NI drivers as well. It might cost some time, but I tried to clean up my program by opening each of the VI's included to search for VI's with compiler warnings. This way I found the ones creating the bug, finally healing the build issue.

 

Hope this helps others as well!

Roland

0 Kudos
Message 15 of 15
(2,563 Views)