08-12-2009 09:46 AM
The new partial clean up feature of LabVIEW has a little glitch, it needs a wire to be selected to actually perform a clean up.
For isntance the following VI:
Where I have selected the top and bottom primitives, when I hit the LabVIEW clean up button, the selection will not be cleaned up.
Ton
08-12-2009 10:37 AM
08-12-2009 10:49 AM
Ton,
It looks like you are using the diagram clean-up like I use ctrl-s. I hold by my opinion that you can't save too often but I think you have found a case were the diagram is too clean.
Ben
08-12-2009 12:06 PM
It's my fault. We were testing this feature for the CCT and I was running it on a VI which only had a few unconnected nodes. The cleanup worked when I pressed the button but didn't work when I called the method and I guess this is the description Ton ultimately came up with.
08-15-2009 03:46 AM
altenbach wrote:
Looks pretty clean to me. What do you expect it to do? 😉
I expect LabVIEW to align the code.
I don't have LabVIEW currently active, but if you add a wire between two of the nodes but not select the wire the clean up will be a no-op as well.
Only with a wire selection it will actually clean up.
TST:
I have seen no difference between the toolbar button and the 'cleanup' invoke node.
Ton
08-15-2009 11:45 AM
TonP wrote:I expect LabVIEW to align the code.
Yes, I certainly agree with you. 🙂
(It's just not a big show stopper)
08-15-2009 03:14 PM
You're expecting quite some intelligence here. How is LabVIEW supposed to know how you want the items to be wired? Are they going to be used in series or parallel execution? If it would know we could as well expect an auto-wiring button instead of just a cleanup button (would actually be nice )
Just my 2c.
Daniel
08-15-2009 08:56 PM
08-16-2009 02:42 AM
We're not expecting any additional intelligence, nor do we want LV to clean a wire which wasn't selected.
The point of the bug was that the cleanup for these objects works if you don't select anything, but doesn't work if you select just these objects. As the others mentioned, this is far from a critical bug. Most people are unlikely to clean up such code anyway. I needed to test something unrelated, so I wrote a quick VI with no wires.
08-17-2009 07:23 AM
How do we define "Clean" if there are no wires giving context to the objects? It strikes me as "Clean up that sentance!" given only a collection of nouns. What is clean in that sense, arranging them alphabetically? That would be clean but would not help the understanding of the sentance.
Just my 2 cents,
Ben