12-21-2009 12:11 PM
For the past few months I've been working on a rather large-scale project in which I am using block diagram cleanup as the only mechanism to arrange my diagrams. You can read more about my adventure in the two blog posts I have written about it so far:
The Diagram Cleanup Experiment
One thing I've noticed in LabVIEW 2009 (that I don't believe was present in LabVIEW 8.6) is that diagram cleanup tries to respect the positioning of comments. If you have a free label in close proximity to wires or nodes, diagram cleanup tries to keep that proximity intact after a cleanup. Unfortunately, it doesn't always work, and your free label will sometimes move somewhere far away from the code it was trying to document. One technique I've used to combat this repositioning is to use the labels of nodes instead of free labels. By choosing Visible Items > Label on a diagram node, and entering your text there, you are ensuring that the node comment will stay close to the node even after a cleanup.
And if your next question was going to be, "But how do we do the same for wires?", then go kudo this idea. 🙂
12-21-2009 01:08 PM
Yes I do this all the time.
But it only works for LabVIEW native nodes and not for sub VIs
Only if we could do this for created sub VIs
See
http://forums.ni.com/ni/board/message?board.id=170&thread.id=417585
12-21-2009 02:07 PM
My diagrams are build clean from the ground up and a cleanup operation only makes them worse. 😉 However, the cleanup button is absolutely essential when trying to decipher horrible code posted here in the forum. A quick cleanup as a first step often really helps to make sense out of the mess. 🙂
Darren wrote:One technique I've used to combat this repositioning is to use the labels of nodes instead of free labels.
You say "nodes", I actually say "structures". I often use e.g. labels of FOR loops to indicate what they are looping over (e.g. "Loop over all blue sites"), case structures what they are selecting, or event structures ("Main UI even structure"), etc.
12-21-2009 03:47 PM
01-15-2010 12:03 PM