02-21-2008 03:51 PM
altenbach wrote:
If case structures never existed and we only need code in the TRUE case....... we could use a FOR loop and convert the boolean selector to 0,1 and wire it to the iteration count.
02-21-2008 04:45 PM
Yup, use that all the time! 🙂
Gabi1 wrote:
...and if you need to pass data, you can use a shift register : it will pass the data unchanged in case the loop doesnt execute!...
02-21-2008 04:58 PM
02-22-2008 06:55 AM - edited 02-22-2008 06:56 AM
Just goes to show that what appears to be crazy code can be quite useful!! 🙂
I've often wished there were shift registers in Case Structures. Now we have it for simple True/False. 😄
EDIT: now, with this new consideration, does the code still fall under Rube Goldberg?
02-22-2008 07:35 AM
maybe not directly Rube Goldberg, but at least obfuscated : imagine a series of loops in loops ...
JoeLabView wrote:
now, with this new consideration, does the code still fall under Rube Goldberg?
02-22-2008 07:37 AM
What was it my dad used to say all the time?
"Do as I say, not as I do."
02-22-2008 08:07 AM
Gabi1 wrote:
maybe not directly Rube Goldberg, but at least obfuscated : imagine a series of loops in loops ...
02-22-2008 10:14 AM - edited 02-22-2008 10:16 AM
JoeLabView wrote:
I've often wished there were shift registers in Case Structures. Now we have it for simple True/False. 😄
02-22-2008 10:54 AM
Yes, Altenbach... that's what I would do.. two loops, see everything, plus shift registers.. LOL!! 😄
Now, since we're having fun this morning, you may as well visit this thread..
http://forums.ni.com/ni/board/message?board.id=170&message.id=303660
02-27-2008 07:50 PM
Why all these "layer of protection"??!! 😮
If we dig a little deeper, almost not a single option is at the default, the VI is