shoneill Posted August 19, 2013 Report Share Posted August 19, 2013 I'm okay with this for the same reason. But I would rather be consistent. Look at the sample I posted with the TDMS functions. That gets me every time that I need to be one pixel off whenever that palette is used. I would rather they were consistent with 5-3-3-5 (or what ever they picked). But I would say that 4-2-2-4 is my standard and very rarely deviate from it. But just as the style guide is a guide, I would say that a 4-2-2-4 setup should not be strictly enforced and if I were king of LabVIEW I wouldn't ban anyone if they used another. I ran into a crappy behaviour of 5-3-3-5 the other day. I thought I'd be smart (You just know how that's going to end up really) and wanted to connect up two VIs with the same conpane pattern (5-3-3-5) but have them vertically staggered so that the top two connectors of one VI lined up with the bottom two of the next one. Lo and behold, even LabVIEW can't make 32 divided by 5 equal an integer and there was an extremely annoying 1-pixel bend. This may be also the background to some of NI's own 1-pixel benders. 1 Quote Link to comment
hooovahh Posted August 19, 2013 Report Share Posted August 19, 2013 hooovahh - alter-ego of crelf and king of LabVIEW I like it! I started calling myself LabVIEW Overlord as a joke, because people throw around the term Guru all the time. Only now it sound pretensions when someone introduces me as the LabVIEW Overlord. Also someone may take that as me pretending I'm better then a NI Knight, which wasn't the intent either. Lo and behold, even LabVIEW can't make 32 divided by 5 equal an integer and there was an extremely annoying 1-pixel bend. This may be also the background to some of NI's own 1-pixel benders. Lets not be rational here. We can all agree it is NI's fault and I demand they fix it. Can't they just have 6.4 pixels per terminal? Quote Link to comment
ShaunR Posted August 19, 2013 Report Share Posted August 19, 2013 I started calling myself LabVIEW Overlord as a joke, because people throw around the term Guru all the time. Only now it sound pretensions when someone introduces me as the LabVIEW Overlord. Also someone may take that as me pretending I'm better then a NI Knight, which wasn't the intent either. That's why I like my title of "Archetype". Old and experienced; one of the original blueprints familiar with the arcane arts of LabVIEW Quote Link to comment
Cat Posted August 27, 2013 Report Share Posted August 27, 2013 I am definitely a pixel-pusher. Gives me something to do when I can't figure out how to fix my crappy code. 1 Quote Link to comment
o u a d j i Posted August 27, 2013 Report Share Posted August 27, 2013 Now, I know that I am no longer alone on this Earth. I am a compulsive "pixel pusher" too. I can spend hours to align a Block Diagram, down to the pixels. It's a pity that it's not possible to align up to half pixel. And moreover, I like very much that, it is a real pleasure. Quote Link to comment
Val Brown Posted August 27, 2013 Report Share Posted August 27, 2013 ...and I love the icon Robby. http://en.wikipedia.org/wiki/Robby_the_Robot Quote Link to comment
Phillip Brooks Posted August 28, 2013 Report Share Posted August 28, 2013 So, what does everyone do when connecting a 4-2-2-4 VI to a 5-3-3-5? (top and bottom connections like VISA handle, error cluster) Do you hide the bends under one of the icons to get nice straight lines, or do you insist on creating a false bend in one of the wires and then align the verticals symmetrically? Quote Link to comment
Cat Posted August 28, 2013 Report Share Posted August 28, 2013 So, what does everyone do when connecting a 4-2-2-4 VI to a 5-3-3-5? (top and bottom connections like VISA handle, error cluster) Do you hide the bends under one of the icons to get nice straight lines, or do you insist on creating a false bend in one of the wires and then align the verticals symmetrically? Must. Hide. Bends. Quote Link to comment
o u a d j i Posted August 28, 2013 Report Share Posted August 28, 2013 @Val Brown : "...and I love the icon Robby" yes, it's Robby, the robot. ( http://en.wikipedia.org/wiki/Forbidden_Planet ) Quote Link to comment
Rolf Kalbermatter Posted August 28, 2013 Report Share Posted August 28, 2013 So, what does everyone do when connecting a 4-2-2-4 VI to a 5-3-3-5? (top and bottom connections like VISA handle, error cluster) Do you hide the bends under one of the icons to get nice straight lines, or do you insist on creating a false bend in one of the wires and then align the verticals symmetrically? how do you.png Never hide bends!! That is über evil! But reduce them as much as possible by aligning the nodes on the error cluster. Quote Link to comment
o u a d j i Posted August 28, 2013 Report Share Posted August 28, 2013 (edited) Align the nodes on the error cluster (+1 rolfk) ... and hide the bend of the upper wire. Edited August 28, 2013 by o u a d j i 1 Quote Link to comment
Cat Posted August 29, 2013 Report Share Posted August 29, 2013 Never hide bends!! That is über evil! Over what must be by now multiple decades of interaction, I never ever ever ever thought I'd say this: Rolf, you are WRONG! :P 2 Quote Link to comment
ShaunR Posted August 29, 2013 Report Share Posted August 29, 2013 Try running the Static Code Analyzer. Any code is crap according to that but it is good for finding wire bends or wires backed up/bent under controls and icons. Quote Link to comment
Rolf Kalbermatter Posted August 29, 2013 Report Share Posted August 29, 2013 Over what must be by now multiple decades of interaction, I never ever ever ever thought I'd say this: Rolf, you are WRONG! :P I can understand that sentiment But my rule comes from the fact that if I move a VI (by nudging it one pixel up and to the side with the cursor) to see if the wires are correctly attached to the right terminal, and yes that has been and is always one of my first methods when debugging code that appears to behave strangely, I want to see the wires move with it so I know approximately that they indeed are attached to the terminal they appear to. With hidden bends you don't have that at all and need to move the node sometimes many steps to see if they really attach correctly. And shift-cursor is not a good way to do it. And to Shaun and others, be happy I'm not in the LabVIEW development team. I would penalize any VI call that is not using the 4*x*x*2 connector pane by an extra 1 ms delay, and document it as a special optimization in the compiler of the 4*x*x*4 connector pane pattern. Quote Link to comment
ShaunR Posted August 29, 2013 Report Share Posted August 29, 2013 I can understand that sentiment But my rule comes from the fact that if I move a VI (by nudging it one pixel up and to the side with the cursor) to see if the wires are correctly attached to the right terminal, and yes that has been and is always one of my first methods when debugging code that appears to behave strangely, I want to see the wires move with it so I know approximately that they indeed are attached to the terminal they appear to. With hidden bends you don't have that at all and need to move the node sometimes many steps to see if they really attach correctly. And shift-cursor is not a good way to do it. Too many hours on Linux Double-click will highlight the entire wire and show all kinks, even if behind a primitive And to Shaun and others, be happy I'm not in the LabVIEW development team. I would penalize any VI call that is not using the 4*x*x*2 connector pane by an extra 1 ms delay, and document it as a special optimization in the compiler of the 4*x*x*4 connector pane pattern. Wouldn't be any worse than using classes They've already put in optimisations to increase compile times and code base by 500% for them Quote Link to comment
Rolf Kalbermatter Posted August 29, 2013 Report Share Posted August 29, 2013 Too many hours on Linux Double-click will highlight the entire wire and show all kinks, even if behind a primitive I think that is triple-click. For some reasons I can't get myself to use that, but that could be also because I do not have a super-duper gaming mouse nor any experience in playing shooter games, or most any other computer games for that matter Quote Link to comment
hooovahh Posted August 29, 2013 Report Share Posted August 29, 2013 Must. Hide. Bends. No this just hides the problem (but I understand the urge). Bends must happen in LabVIEW, and the style guide must mentions unnecessary wire bends. This bend is necessary. I choose the error wire be straight first. Quote Link to comment
Mellroth Posted August 29, 2013 Report Share Posted August 29, 2013 Never hide bends!! That is über evil! But reduce them as much as possible by aligning the nodes on the error cluster. +1 Quote Link to comment
hooovahh Posted August 29, 2013 Report Share Posted August 29, 2013 I think that is triple-click. For some reasons I can't get myself to use that, You don't triple click? I do it quite often. I colleagues of mine once told me a story of trying to help his neighbor get some files off of a USB stick. This guy didn't have a lot of experience with computers. So he went over and plugged in the stick and showed him the files and how to navigate Windows Explorer. He then said you right click the file an choose Copy. The neighbor quickly snapped back "Oh I don't right click, is there another way?". He told me this story as if it was the guys religious preference or something that it would go against his moral code to right click. Accept the new doctrine of triple click my friend. Quote Link to comment
o u a d j i Posted August 29, 2013 Report Share Posted August 29, 2013 @Rolfk : " I want to see the wires move with it ..." I had never thought of that. (!!!) very good comment Rolfk. Quote Link to comment
todd Posted August 29, 2013 Report Share Posted August 29, 2013 Once in a while I'll download VIs from NI forums. I have to make sure I have not had any coffee, yet, otherwise I get sucked in to the vortex of cleaning up ALL of the code. Straight error wires with non-hidden bends. The nudge-to-check-connection also works for putting the 1px bend in the horizontal middle of the wire. Has anyone mentioned having to line up all the input and output terminals of case and event structures, and for and while loops? That one slows me down a little, sometimes. Quote Link to comment
o u a d j i Posted August 29, 2013 Report Share Posted August 29, 2013 With Case Structure, I align a maximum of functions and wires between cases. When i scroll cases, some functions and wires don't move. (ditto with Event Structure) Quote Link to comment
todd Posted August 29, 2013 Report Share Posted August 29, 2013 I'll see your scrolled-case-wires-don't-move and raise you my scrolled-case-VIs-and-controls-don't move. The empty string constants in this BD are used for aligning edges of nodes in the cases: Oh, now I notice that you mentioned functions. 2 Quote Link to comment
crossrulz Posted August 29, 2013 Report Share Posted August 29, 2013 And here I thought I was bad about trying to align things up between cases. Looks like I'm just normal and everybody else I have worked with are just sloppy. Quote Link to comment
GregSands Posted August 29, 2013 Report Share Posted August 29, 2013 I have a slightly different approach when matching 4x VIs to 5x VIs (or more often 3x for the many Vision anomalies) - my preference is to keep the VI icons fully aligned, and hide bends on both the top and bottom wires behind the non-4x VI. That seems to me to minimize the internal stress of the block diagram (i.e. makes me happiest). I almost never run into Rolf's problem within knowing whether a wire is attached because I work hard not to have any wires going behind unconnected VIs - if it's touching, then it's attached. Oh, and I don't mind triple-clicking. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.