LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Diagram Disable Structure doesn't remove all objects it contains after deleting the structure.

Solved!
Go to solution

I have programmed in side of a while loop a Stop from "Application Control", later I used disable structure around that "Stop". It was working fine, but after removing disabled structure containing the disabled "Stop" my application stops even there was no reason to stop. Later I have experienced that removing the disabled structure leaves hidden object in the code and some how they get executed and it is no way debugging due the objects are invisible.

I am worried that this is a bug in Labview !

(Edi)
0 Kudos
Message 1 of 11
(3,142 Views)

Can you post your VI (or a simplified version of it) that exhibits this behavior?

 

What version of LabVIEW are you using?

0 Kudos
Message 2 of 11
(3,133 Views)

Diagram Disable like other nodes with hidden panels (case structures, stacked sequences, ...) will remove the code in the hidden cases and leave intact the code in the visible case when you remove the structure.  You also get a pop-up dialog warning of this consequence.  This has been the behavior since long before the Diagram Disable Structure was introduced.  Are you seeing something different from this?

 

DId you move the structure or change its size before removing it?

 

Lynn

0 Kudos
Message 3 of 11
(3,124 Views)

The Stop was in the disabled case in a frame and after removing the complete "disable structure" the software stopped randomly at the location where the disabled structure containing the Stop was already removed. Unfortunatally the code is to complex to post. I am working on a demo, but sofar doesn't prove my point yet. But I realized Labview was pointing on left over items from the disabled structure after its removal. The compiler was high lighten the hidden objects in the same shape of the object but without any visible object in the high lighted position in the graph. 

(Edi)
0 Kudos
Message 4 of 11
(3,106 Views)

It just seems like you have one object behind the other. Use the Reorder button to change the Z order.

0 Kudos
Message 5 of 11
(3,085 Views)

Thanks all for trying to help. This issue is escalated to NI-Customer support, but I can't create a simple VI to reproduce the problem. As a solution I rewrote all VI's where I have used and deleted the disabled Structure in the Diagram. The issue seems not to appear after rewriting the same code. I keep you posted if any other details on this issue are found or I can simplify the problem in a demo.

-Edi

(Edi)
0 Kudos
Message 6 of 11
(3,063 Views)

Here a simplified version. Try to compile.

(Edi)
0 Kudos
Message 7 of 11
(3,014 Views)

see my post with my example vi

(Edi)
0 Kudos
Message 8 of 11
(3,013 Views)

see my post with my example vi

(Edi)
0 Kudos
Message 9 of 11
(3,011 Views)

I posted an example Vi

(Edi)
0 Kudos
Message 10 of 11
(3,009 Views)