04-12-2013 01:31 PM
Hello,
I'm trying to build an application .exe of my LabView8.5 code. This is my first time doing so.
My VI program runs fine and has no errors.
However, when I try to build the application, I obtain the error
Error 1502 occurred at 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
Possible reason(s):
LabVIEW: Cannot save a bad VI without its block diagram.
Method Name: Save:Target Instrument
To my knowledge there are no bad VI's, as the VI's run ok in LabVIEW!
Thanks for your help,
David
Solved! Go to Solution.
04-15-2013 04:34 PM
Try going to the Additional Exclusions section of your build specification window and selecting Do not disconnect type definitions or removed unreferenced members. While this may make your execution larger, in most cases it will fix the error.
Another option is to enable debugging. This can be done by navigating to the Advanced section of the build specification, and check Enable debugging.
04-16-2013 04:21 PM
Thank you.
I was able to build my .exe.
On trying to run this exe, I ran into the prompt for me to "Find the Shared Library Named "lvsound2.dll" ".
Can you explain why it is asking me to find things? Shouldn't they all have been included in the .exe? I can't distribute the .exe to my few users without everything being included.
Thank you for the help,
David
04-17-2013 11:33 AM
Does your application use VIs from the lvsound dll? Does the exe interface with the sound card at all? If so you should see the lvsound.dll included in the Dependencies folder of your project.
04-17-2013 02:17 PM
Hello,
My VI does load a .wav file, whose function I believe is located in lvsound2.dll.
On the Project Explorer, Items tab, I do see lvsound2.dll under the list of Dependencies.
I would have expected this function to be included in the .exe, but, as I mentioned, upon running the .exe it asks me to find this dll.
Sorry, have I missed something?
Thank you,
David
04-18-2013 10:04 AM
Building an exe does not actually include the dependencies, so you will either need to ensure that the dll is present on your target computer or build an installer that automatically places the dll on the computer.
04-25-2013 12:13 PM
Great! It works well now. Thank you.
David
07-08-2013 02:14 AM
dear sir,
i also having the same problem that error 1502. following your solution i could able to create exe but when am trying to run exe it shows tat " the vi is not executable.the full devolopment of labview is required to fix this error" .. plz help me sir
08-02-2013
10:45 AM
- last edited on
08-12-2024
03:12 PM
by
Content Cleaner
saran77,
I had the same problem. I was getting error 1502 when building the executable, then enabled debugging and the build was successful. But, when I tried to run the exe, I had a broken arrow. Clicking on the arrow resulted in "...full development required to fix..." dialog box.
This is what helped me:
I had a constant wired to a case structure. Once I corrected this, I was able to build and run as normal.
Hope this helps.
10-04-2013 03:53 PM
Had the same issue. Co-developers had a dozen hardcoded case statements throughout the code. Run the VI analyzer and select just the "Unused Code" check. Find'em, fix'em and rebuild.