07-09-2011 11:02 AM - edited 07-09-2011 11:06 AM
Flat sequence structures aren't necessary. But what is worse about this one is that it is not one sequence with 5 frames, but actually 5 sequences with 1 frame each.
(Not sure the purpose of the inner while loop other than to really spam someone with text messages until you hit the stop button.)
07-14-2011 11:31 AM
Some people simply refuse to use an Invert function to flip a Boolean, and find all sorts of ways around it:
or
or
From http://forums.ni.com/t5/LabVIEW/Boolean-array-bit-by-bit-inversion/m-p/1635238
07-14-2011 04:30 PM
I Laughed both times I looked at it. Perhaps he could use a not (if not [(not equal true) or (if equal to self)] but maybe not!
07-15-2011 02:50 AM
why does it need to be checked for = because the answer the same straight from the Array Index.
07-15-2011 03:10 AM
Some people do a literal translations of their thoughts when programming ...
" ... If this boolean is TRUE, I need to do ..." 😄
07-15-2011 03:12 AM - edited 07-15-2011 03:13 AM
(Of course in this particular case, he could also do an "equal FALSE" and get the invert right there for free 🐵
07-15-2011 06:40 AM - edited 07-15-2011 06:43 AM
Actually he could replace the AND with a NAND and do away with the for loop alltogether. Waste not - want not.
07-15-2011 10:41 AM - edited 07-15-2011 10:42 AM
Ever wonder what would happen if you would place your diagram in a thrash compactor? Probably not!
Still, if you are curious, here's the result (spotted here) 😄
Well, even after compacting, it is still thrash. At least the code is well documented. 😮
07-18-2011 10:54 AM - edited 07-18-2011 11:13 AM
One of those again! (seen here) Look at the navigation window!
How much code do you need to make a bar graph with 24 bars???
Here's alternative code that does about the same thing.... 😄
07-19-2011 07:38 AM
...but if this person was being paid by the hour...???
(Not suggesting I'd do that, just that some people might.)
To produce code like that they're obviously not on performance related pay.