LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Run-Time Engine cannot load the polymorphic VI

I have a code that I'm trying to run on NI cRio 9082. LabVIEW version is 2014SP1 and RIO sw version is 14.5.

 

When I try to run the code from development environment, I get the following error.

LabVIEW:  The LabVIEW Run-Time Engine cannot load the polymorphic VI. This error occurs in stand-alone applications when the VI is polymorphic.

 

 

In the application I have two classes, let's call them A ndd B. Class A is pretty simple. It contains only one enum and an instance of class B.

Class B is located in PPL, which is (naturally) built within a different project. PPL contains also some other classes that are used by class B. Class B contains few polymorphic VIs.

 

It doesn't seem to matter what the start up VI does, problem occures whenever class A is included. A code that uses only the class B, seems to work just fine. There are no broken VIs within the projects. I also tried mass compile. It goes through without errors and didn't make any difference.

 

So, I'm kinda out of ideas. What could be wrong?


LV 2015SP1
0 Kudos
Message 1 of 3
(3,781 Views)

Sounds like the polymorphic VIs aren't being included in the PPL? Have you tried setting the polymorphic VIs to be always included from the PPL build specification? Are your polymophic VIs actually in the .lvlib or are they just dependencies? In the PPL build specification, do you have 'removed unused members of library' tickets?


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 3
(3,770 Views)

Thanks for the reply Sam! Meant to write also about the excluding settings in the original post, but forgot. Sorry.

 

Both, "Remove unused polymorphic VI instances" and "Remove unused members of project libraries" are  unchecked in the build specification of the PPL.

 

All the polymorphic vis are part of the lvlib which the PPL is compiled from. There are no dependencies that could be related to the problem, neither in the PPL project nor in the rio project.

 

All polymorhphic vis are found in the compiled PPL. Did not try to "allways include" them anyway.

 

The code I'm trying to run is now really reduced and it doesn't call any of the polymorphic VIs.

 

 


LV 2015SP1
0 Kudos
Message 3 of 3
(3,759 Views)