LabVIEW Real-Time Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
JCC_(SK)

Remove LabVIEW feature which generate error no. 1502 during RT project compilation

Status: New

When I could run (and debug) my RT application from Development environment then I should be able to Build this application for my RT target without problem = without Error no. 1502 = LabVIEW:  Cannot save a bad VI without its block diagram.

 

In this discussion I could see that this problem is not new and NI know about it. For hits how to solve this problem, please, follow same link.

2 Comments
StephenB
Active Participant
I just got hit by this for a source distribution (LLB) for VxWorks. In my build spec I had selected everything, including dependencies, to remove block diagrams... Similar to RTEXEs. I also had disconnect typedefs, remove unused members of proj libraries, remove unused polymorphic VIs and disconnect inline VIs checked. I DID NOT check modify project library after removing unused members. I finally figured out what caused the issue. I had TCP Listen in my code.. And deep in its hierarchy there is "Three button dialog.vi". This VI is broken on VxWorks for obvious reasons... But that was OK because it was behind a conditional disable structure for OS. So my code was not broken. However, since source distributions include edit time dependencies as well as run time dependencies... It was going into the LLB and the block diagram was attempting to be removed yielding error 1502. However RTEXEs do NOT include edit time dependencies. Only run time dependencies. So items behind a conditional disable shouldn't cause this problem. Nevertheless I can't help but think this is related. One thing is for sure- something in your hierarchy includes a broken VI. Sometimes it is very hard to figure out what this VI is because the LVproject hides some dependencies as "internal". I will also post this reply to that forum post. Hopefully it helps
Stephen B
JCC_(SK)
Active Participant

Hi Stephen

 

I have got TCP Listen in my code as well.