LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Name Collision / Polymorphic VI / Build Executable

All,


    I'm having a hard time trying to compile my project under LabVIEW 8.2. My init method for one of my Classes is a polymorphic VI, and whenever I try to start the executable, I receive an error that states that the VI is not loadable. I'd like to keep using this VI as a polymorphic VI as it is very useful this way. How can I get arround this? At the moment I'm trying to build the project by replacing all of the instances with the correct polymorphic VI instance.

Regards,
Ken
0 Kudos
Message 1 of 3
(2,760 Views)
Hello Ken,

I understand your frustration with this, the Application Builder can be difficult.  A few things I would double-check are:

1) Make sure that all VIs that are being called dynamically are included when building the application.
2) Make sure that the DLLs called by the dynamically called VI are present on the run-time system.

Basically, if an application calls a VI dynamically that was not included in the build, and the dynamically called VI calls a dll that is not included on run-time system, Error 1124 will occur.  I am assuming the error you receive stating the VI is not loadable is associated with error code 1124, correct?

Let me know if you have further questions.  Cheers!

-Bob
0 Kudos
Message 2 of 3
(2,738 Views)
As a workaround for this, in the "additional exclusions" options for your build specification, change it from the default of "Remove as much as possible" to "Do not disconnect type definitions or remove unreferenced members".  Your EXE will probably end up being a little larger, but I doubt it would have a significant effect, and I think there's a good chance it will solve the problem.
 
Incidentally, this shouldn't really be necessary.  This was reported to R&D (494FRLC3) for further investigation.
0 Kudos
Message 3 of 3
(2,724 Views)