LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

block diagram cleanup fails

Just occasionally I seem to create vi's that the automatic block diagram cleanup just refuses to touch - I hit CTRL-U, the machine beeps at me and nothing else happens. It's not a big deal but I was just curious under what circumstances the block diagram cleanup tool might fail to work ? Today's problem case involves various VI-Scripting calls which I guess might be vulnerable to tripping the cleanup tool up..
--
Gavin Burnell
Condensed Matter Physics Group, University of Leeds, UK
http://www.stoner.leeds.ac.uk/
0 Kudos
Message 1 of 7
(2,950 Views)
Perhaps your block diagram exactly matches what the cleanup tool would do.  That's fantastic!  🙂
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 2 of 7
(2,920 Views)
Unfortunately I can be pretty confident that my block diagram is not optimally laid out Smiley Sad ! Also, in those cases I don't get the error beep. This is defintiely the cleanup routine finding something it doesn't like...
--
Gavin Burnell
Condensed Matter Physics Group, University of Leeds, UK
http://www.stoner.leeds.ac.uk/
0 Kudos
Message 3 of 7
(2,903 Views)

Hi Gavin

 

we wanna see examples!!!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(2,893 Views)

I'm afraid it's a bit tricky to post an example vi as its part of a larger library. However, I do have a screenshot and you can download the code from http://code.google.com/p/lavacr/source/browse/#svn/trunk/8.6.x/Rusty%20Nails/VI%20Scripting/Scriptin... (this is part of the LAVAG Code Repository subversion archive).

 

Clipboard01.gif

The obviously sub-optimal code is around the inplace structure. Note that the code cleanup broke after I stretched the diagram, inserted the two tunnel property nodesand the inplace structure.

 

For the curious, the code (which is perfectly functional, just not as pretty as it could be) will programmatically create a case structure, populate the cases and set the case insensitive flag for the selector.

--
Gavin Burnell
Condensed Matter Physics Group, University of Leeds, UK
http://www.stoner.leeds.ac.uk/
0 Kudos
Message 5 of 7
(2,879 Views)

Hi Gavin,

Just wanted to inform this problem has been fixed in LabVIEW 2009. 

Thanks,
Sujay

Sujay Narayana
Principal Software Engineer
0 Kudos
Message 6 of 7
(2,758 Views)

It seems to be back (broken) in 2010 SP1.

0 Kudos
Message 7 of 7
(2,474 Views)