‎06-04-2009 02:14 PM
I've got a large program on the block diagram that is in working order. When I press the clean up diagram button, labview goes haywire and destroys my code, stacking structures on top of one another and breaking wires.
Tell me there's a way to fix this.
-root
‎06-04-2009 02:16 PM
‎06-04-2009 02:43 PM
‎06-04-2009 03:39 PM
Whoa, wait a minute! Are you saying that there is an easy way to only clean up a section of a block diagram? or do you mean I should cut out a piece at a time, paste it into a blank diagram, clean that, and then paste it back into the original?
-root
‎06-04-2009 04:28 PM
I think partial block diagram cleanup is going to be an improvement in the next version of LV coming out in a few months. In LV 8.6, you can only clean up the whole diagram at once.
Cut, copy, paste, clean, recopy is of course an option, but I wouldn't go through that much trouble. If the block diagram is so bad that you are trying to clean it up, dealing with and reconnecting all the loose wire ends is going to be an even bigger problem.
I would check to see whether AutoGrow as been turned off on some of your structures. If so, turn it on before cleaning up the diagram. I know when I try to cleanup some VI's posted on the forums that use Stacked sequence structures, I try to replace them with flat sequence structures. Of course that will blow out the diagram, but at least then you can see the order of execution and try to use block diagram cleanup to fix it up. If autogrow is turned off on a loop, than the flat sequence will extend out the edge of a loop and become invisible. Turn on AutoGrow, and the loop will grow as the stacked sequence is replaced with the flat sequence.
‎06-04-2009 06:27 PM
Root,
Can you please post your VI that gets broken when you run diagram cleanup?
Chris M
‎06-05-2009 09:33 AM
‎06-05-2009 09:42 AM
Root Canal wrote:I've got a large program on the block diagram that is in working order. When I press the clean up diagram button, labview goes haywire and destroys my code, stacking structures on top of one another and breaking wires.
Tell me there's a way to fix this.
-root
Hi root,
In your opinion, would the diagram clean-up result in a digarm that is larger that 65K pixels wide?
If yes then that is what is probably confusing the diagram clean-up.
Ben
‎06-05-2009 11:46 AM - edited ‎06-05-2009 11:48 AM
No, the diagram fits horizontally on two screens right now before cleanup. It's not particularly messy, I've got four loops running, one master loop. Naturally, I'm using subvis, I never use stacked sequences, and there aren't that many wires because I tend to bundle things by name into a cluster and use type definitions liberally. I have to sanitize the code before I send it, and I'm not at liberty to send the whole project, so I'm gonna continue to whittle the main block diagram down by converting portions I'm currently working on into subvis and I'll send a barebones version if it still exhibits the same behavior.
Anyone like to make an early bet as to whether my vi is corrupted?
-root
‎06-05-2009 05:14 PM
I converted some case structures to subvis and clean up no longer scrambles the block diagram. I'm not sure what the solution is because I'm not sure what the problem was. The block diagram was two screens wide (about 2560 pixels wide), there aren't many wires and no stacked loops or anything like that. What is the maximum number of structures or elements that clean up can handle?
-root