LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Block Diagram won't clean up

I have a block diagram for a vi that won't automatically clean up anymore.  I think Ctrl+U stopped working back in 2015 for this particular vi, but because it never required any updates it's been left to fester.  I am now trying to add some additional functionality but because of the size of the diagram I can't track all of the wires especially as some of them loop behind other structures.  Also at the heart of the matter there is a massive flat sequence (I know I know, currently converting them to state machines when I can)

The block diagram is in excess of 32000 pixels tall.

CTRL + U doesn't work.  I have tried manual tuning options which don't work.

CTRL + DRAG works to make more white space.

CTRL + ALT + DRAG doesn't seem drag elements from off the screen edges.

I have tried this in Labview 2015 and 2017.

 

I am resigned to the fact that I'm going to have to rewrite this vi from scratch, but is there a way to tidy it up enough that I can see all of the vi's that are in it and how they are connected?

navigation window.PNG

 

0 Kudos
Message 1 of 3
(2,263 Views)

I'd try a copy paste into a new VI as a first attempt.

 

Next, I'd probably make a script that sets the size\position of each structure (using a traverse for structure). It doesn't need to set the size nicely, just to something valid. Then try the clean up.

 

It could be that nodes inside the structures are positioned wrong as well. So, I'd make a script to fix that as well.

 

EDIT: Never mind. That doesn't work. In LV17, I get insane FP, wire and wiretbl messages. Setting position and size of structures and nodes doesn't help...

 

You could still use scripting to traverse all diagrams and copy each structure and it's nodes and wires (recursively) to a new diagram. Probably not worth the effort for this VI. Unless someone make this before...

Message 2 of 3
(2,257 Views)

Thanks wiebe@CARYA.  Tried Copy and paste, it took ages to even paste the diagram, then it was in a different order and wouldn't tidy up.

 

I didn't even know scripting was a thing in LabView.  I'll have a look at it thanks 😄

0 Kudos
Message 3 of 3
(2,241 Views)