05-30-2006 01:33 PM
05-30-2006 02:01 PM - edited 05-30-2006 02:01 PM
tst wrote
"I see absolutely nothing wrong in unbundling the value multiple times for readability's sake, as long as the programmers make sure they selected the correct element."
I am with you 100% !
I actually prefer that style because it makes it crystal clear what the value be read is.
The alternative (unbundle once and run wires) would require a free label be used to ID the wire.
Ben
PS I do not have time to invesatigate but this sounds like the "data flowing backwards" bug.
PPs Christian: the answer BETTEr be "5".
Message Edited by Ben on 05-30-2006 02:03 PM
05-30-2006 02:17 PM
@altenbach wrote:
Don't get me wrong! I fully agree that whatever you discovered here is definitely a bug.
I never thought you didn't.
the bundle example was to enforce the point that using multiple indentical unbundle or bundle terminals can lead to confusion. I still don't see a real valid reason to even allow multiple identical terminals.
In that case, I guess it's a matter of personal perspective - I don't find unbundling the same element twice confusing (if it's properly named) and I prefer the way the diagram looks. Since it's a matter of taste, we might as well leave it at that.
Overall, it always strikes me how small the actual number of bugs is compared to the overall complexity of LabVIEW. :D
Amen to that (not including the PDA module ).
P.S. I believe the answer for your question about the bundle node (at least for as long as LV keeps its current paradigm and style) should be that the bottommost element gets written regardless of execution time, and I wouldn't find that confusing. What would be confusing is if you fail to notice that the last element is there. Also, since the last element will always be the deciding one, the other connections would be unnecessary and therefore can be considered bad style.
P.P.S. Speaking of bugs, you can tell your son that the file named Steps of Bonfim in the Dukes' site is actually Wildfire, which appears again 2 songs later. You can also tell him that I liked most of what I heard so far (particularly So Many Before).
05-30-2006 02:28 PM
@tst wrote:I don't find unbundling the same element twice confusing (if it's properly named)
05-30-2006 02:48 PM
05-30-2006 03:03 PM
05-30-2006 03:13 PM - edited 05-30-2006 03:13 PM
Message Edited by jasonhill on 05-30-2006 03:13 PM
05-30-2006 03:13 PM
OK, thanks.
This bug really seems to drive LV crazy.
05-30-2006 03:17 PM
That's what I thought you meant, which is why I said that mine is a version of your idea. I like mine better, because unlike yours, it would be much harder to figure out, similar to JPD's trick with typecasting from a boolean. On the other hand, mine would not have been fair, since it relies on a bug.
@jasonhill wrote:
It does not rely on tst's bug. But rather exploits the confusion that can arise with mulitple reads and poorly chosen variable names.
05-30-2006 05:56 PM
@Ben wrote:
PS I do not have time to invesatigate but this sounds like the "data flowing backwards" bug.
I think it is more complex than just "flowing backwards". It is really strange, e.g. if you do execution highlighting, all unbundle outputs show as zero and the wrong values only appear after the increments. Even a probe placed right before the increment still shows zero. ...
Thanks! I sent him a note, but they are probably traveling somewhere in no-mans-land between Utah and Colorado without any internet access. I'm sure you noticed that you can get the real "bonfim" track from their myspace page, though. 🙂
@tst wrote:
P.P.S. Speaking of bugs, you can tell your son that the file named Steps of Bonfim in the Dukes' site is actually Wildfire, which appears again 2 songs later. You can also tell him that I liked most of what I heard so far (particularly So Many Before).