LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

partial clean up needs wires (BUG LabVIEW 2009)

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:

C:\Documents and Settings\Meetlaptop gebruiker\Local Settings\Temp\Example_VI_BD.png

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

 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 1 of 11
(3,856 Views)
Looks pretty clean to me. What do you expect it to do? 😉
0 Kudos
Message 2 of 11
(3,835 Views)

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. Smiley Wink

 

Ben

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 11
(3,828 Views)

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.


___________________
Try to take over the world!
Message 4 of 11
(3,806 Views)

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

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 11
(3,758 Views)

TonP wrote:

I expect LabVIEW to align the code.


Yes, I certainly agree with you. 🙂

 

(It's just not a big show stopper)

0 Kudos
Message 6 of 11
(3,739 Views)

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 Smiley Happy )

 

Just my 2c.

Daniel

 

0 Kudos
Message 7 of 11
(3,724 Views)
I thought the partial clean up was only supposed to clean up what you have selected.  Therefor if you don't select a wire, why should it clean it up?
0 Kudos
Message 8 of 11
(3,700 Views)

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.


___________________
Try to take over the world!
0 Kudos
Message 9 of 11
(3,687 Views)

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

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 10 of 11
(3,643 Views)