LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

application build problems with polymorphics

In LV8, when I try to build an executable application I get an error about polymorpics. It says to us an "instance" of it instead of the polymorphic. Anyone know an easy way to search out all of the polymorphics and then how to convert them over to something that will "build"? Thanks Jim
0 Kudos
Message 1 of 9
(3,509 Views)
I do not know if you have this checked or not, but you may want to uncheck the "Disconnect all type definitions and unused polymorphic instances" in the advanced section of the application wizard.  I usually cannot have the box checked in order to create an .exe.

Kenny
Kenny

0 Kudos
Message 2 of 9
(3,495 Views)
Yeah, it still won't build either way.
0 Kudos
Message 3 of 9
(3,490 Views)
Jim,
 
Is there any sort of error number or additional text that is associated with that error?  Checking the "Disconnect...unused polymorphic instances" should remove any unused instances and automatically remove them from the build and is mostly for saving some space.  Is this older code that you have opened in LabVIEW 8 or was it all developed in 8?  If it is older you may try to Mass Compile it to make sure that all of the VIs are linked correctly.  One last thing to try is addressed by this KB:
 
 
This is in LabVIEW 6.1 and should be taken care of in previous releases, but its something to try before you have to go through you code to try to find all of the polymorphic VIs. 
 
Hope this helps!
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 4 of 9
(3,477 Views)
Some older code some lv8. The error message says: Polymorphic VIs cannot be used as Startup/Exported or Dynamic VIs for applications or shared libraries. C:\Program Files\National Instruments\LabVIEW 8.0\xmltest\project three\ONEGRAPH\Append Report Textuser.vi DETAILS Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference: Error 1035 occurred at ABAPI Dist Check if PolyVI.vi-> ABAPI Load All Libraries And VIs.vi -> ABAPI Dist Build LLB Image.vi -> ABAPI Copy Files and Apply Settings.vi -> EBEP_Invoke_Build_Engine.vi -> EBUIP_Build_Invoke.vi -> EBUIP_Build_Rule_Editor.vi -> EBUIP_Item_OnDoProperties.vi -> EBUIP_Item_OnDoProperties.vi.ProxyCaller Possible reason(s): LabVIEW: Operation is invalid for this type of VI.
0 Kudos
Message 5 of 9
(3,458 Views)
So are you including a polymorphic VI as the Startup VI or calling it dynamically?  If so that may be the issue.  Here is another link for you:

http://digital.ni.com/public.nsf/websearch/86256A47004E16D186256A6C0075A4E8?OpenDocument

Basically it recommends either creating a wrapper VI that calls the polymorphic VI or only using an instance of it when calling it dyamically or as a startup VI.  Repost if this doesn't help!

Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 6 of 9
(3,439 Views)
Thanks, I'll look at it. But it think I found my problem. I'm still working out the bugs on LV8. I refreshed the dependencies and then dragged them to a support folder in my project. I think this was the problem because it put hundreds of vi's in my project. I opened another project with my main vi and didn't refresh and drag the dependencies and everything works fine. Jim
0 Kudos
Message 7 of 9
(3,433 Views)
Jim,

Glad to hear that you got something working!  It's amazing how many times just starting over works for me. 

Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 8 of 9
(3,414 Views)

Thank  you

 

I went Advanced options and now I can build OK.

 

Thank you

0 Kudos
Message 9 of 9
(3,135 Views)