01-29-2018 03:59 AM
I and I'm sure many others have the habit of running the error wire as seen below. Note the style how the error always heads directly downwards from VI's and is aligned horizontally to some common level.
The default automatic wiring (e.g. when you use Remove and Rewire, which I for one use a lot), however, doesn't follow this style. I wouldn't go as far as to say it's a major inconvenience but it does add to the manual cleaning up.
Is there any way to configure the LabVIEW default/automatic wiring style to use this pattern?
01-29-2018 04:20 AM - edited 01-29-2018 04:28 AM
Hmm, I am not aware of any special settings to change the default wiring style. But using your style you lose valuable BD space. What is wrong with this, this is how I would do it:
or this:
Edit: sorry, I used the wrong VI with the string input, a bit different connector pane location, anyway, then this:
01-29-2018 04:52 AM
There's nothing wrong with it. It's just not the style I prefer. This is obviously subjective but I see my preferred style as more organized and readable, and I value those greatly more that compactness.
01-29-2018 05:15 AM - edited 01-29-2018 05:21 AM
@vekkuli wrote:
There's nothing wrong with it. It's just not the style I prefer. This is obviously subjective but I see my preferred style as more organized and readable, and I value those greatly more that compactness.
That is not the only problem. You error wires do not follow the natural way in and out. So they do not reflect the standard connector pane pattern. Besides, your error wires use up some bottom connector panes locations. What about if you have a vi with inputs/outputs connected at those locations? Using your style, your error wires would overlap those spaces...
edit: a solution could be for you, to connect the error wires to the bottom connectors ...
edit 2: but of course this will not help with the built in functions, where you cannot (or should not) change the connector pane...
01-29-2018 05:29 AM - edited 01-29-2018 05:36 AM
You are not wrong. Using the style does set certain constraints. For me, however, the limitations have zero effect in practical terms—I don't really use other connector pane patterns. Besides, standard VI's seem to follow the same "error terminals at bottom corners" convention as well.
A thought came to my mind when you brought up the natural way in and out. I wonder if that exactly is what causes LabVIEW to lead the wires left and right respectively. I.e. there's a default direction attribute to each terminal. Now I wonder whether there's a way to manipulate that...
01-29-2018 07:01 AM - edited 01-29-2018 07:04 AM
Blokk wrote:That is not the only problem. You error wires do not follow the natural way in and out. So they do not reflect the standard connector pane pattern. Besides, your error wires use up some bottom connector panes locations. What about if you have a vi with inputs/outputs connected at those locations? Using your style, your error wires would overlap those spaces...
The "corner" connections are "ambiguous" as to whether they are left-right or top-bottom connectors. It seems (to me) that the "real" connector point is smack dab in the middle of the little square (you can figure out where the connection is "anchored" by moving the input up and down with the arrow keys until the wire "unkinks" and is straight -- see below). So the corners are both side and top/bottom connectors, and there is no overlap ...
Bob Schor
P.S. -- I prefer the "straight Error Line" style, myself. When I need to "hop" a wire over a function or VI, I'm more likely to keep the Error Line straight and kink the wire than use "vertical" error lines ...