11-26-2018 01:55 AM
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?
11-26-2018 02:05 AM - edited 11-26-2018 02:25 AM
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...
11-26-2018 03:03 AM
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 😄