02-14-2011 02:07 PM
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 !
Solved! Go to Solution.
02-14-2011 02:25 PM
Can you post your VI (or a simplified version of it) that exhibits this behavior?
What version of LabVIEW are you using?
02-14-2011 02:32 PM
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
02-14-2011 03:03 PM
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.
02-14-2011 09:02 PM
It just seems like you have one object behind the other. Use the Reorder button to change the Z order.
02-15-2011 03:52 PM
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
02-17-2011 03:31 PM
Here a simplified version. Try to compile.
02-17-2011 03:33 PM
see my post with my example vi
02-17-2011 03:34 PM
see my post with my example vi
02-17-2011 03:34 PM
I posted an example Vi