LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When should tunnels be allowed in the top or bottom of structures?

Highlighted

I want to write a test for the VI analyzer that only fails when a tunnel is used in the top or bottom of a structure in an "unacceptable" way. Other developers at my company agree with me that requiring all tunnels to only be on the left and right of structures is too strict. However, we aren't sure how to define what an "unacceptable" use of top/bottom tunnels is. Does anyone have any ideas of what the requirements for this should be? Perhaps defined by wire length? or what the resulting wire length would be if the tunnel was moved to the sides?

 

Any ideas or opinions on the usage of top/bottom tunnels are appreciated.

0 Kudos
Message 1 of 8
(1,201 Views)
Highlighted

If you're going through the effort - top and bottom should not be allowed.  Based on my experience, either these tunnels are after thoughts or there is just way too much going on within that diagram so it should be cleaned up.

0 Kudos
Message 2 of 8
(1,195 Views)

I see nothing wrong with tunnels on all sides. I try to avoid tunnels that go through e.g. the case or event labels, etc.

 

(In fact I would prefer if the case selecter would also be allowed e.g. along the bottom edge of a case structure ;))


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 3 of 8
(1,175 Views)
Highlighted

LabVIEW "best practices" would have you make tunnels on the sides only.  That being said, unless they are being hidden by labels or other stuff, I think top and bottom are fine and actually helps the BD look cleaner (in most cases).

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 8
(1,148 Views)
Highlighted

Yup my opinion is similar.  Highly prefer side tunnels, but accept top/bottom tunnels if I have to, and labels don't get covered.

0 Kudos
Message 5 of 8
(1,110 Views)
Highlighted

I forgot to add that I am HIGHLY biased towards side tunnels if the input and output tunnels are connected.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 8
(1,103 Views)
Highlighted

I know we all hate sequence structures, but if you do have a use case for flat sequence structures, you should allow top and bottom tunnels out of them, because it allows data to get out of the sequence before the entire sequence finishes. There is actually a difference in execution between running a wire all the way through to the last frame of a sequence, versus having it exit the sequence from the top or bottom in the frame in the last frame in which it's used.

Message 7 of 8
(1,092 Views)
Highlighted

nathand makes a good point.  I see that as a functional point - much like using a conpane terminal on top or bottom of a subVI.

 

I am probably more compulsive than is truly healthy but I never use top or bottom tunnels on structures which do not require them.

 

Lynn

0 Kudos
Message 8 of 8
(1,080 Views)