ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code


Ravens Fan wrote:
"encountered a serious problem and needs to close."

that says it all....

0 Kudos
Message 691 of 2,635
(13,004 Views)

Sometimes, a FOR loop needs to run an infinite number of times without any possibility of stopping. (we can always force kill the application later!)

 

Thus we need an infinite integer and here's how to do it... NOT! Sigh!

 

 Note that the loop recursively calls the itself, so soon we have an infinite number of infinite for loops. 😄
Message Edited by altenbach on 06-08-2010 12:59 PM
Message 692 of 2,635
(12,983 Views)

Typecasting can be such a chore sometimes! 😄

 

0 Kudos
Message 693 of 2,635
(12,943 Views)

I've been branded as a Rube.  Smiley Surprised Thanx Altenbach. Smiley Mad  Well, at least I've been recognized for something. Smiley Wink

 

- tbob

Inventor of the WORM Global
Message 694 of 2,635
(12,932 Views)

On more than one occasion I have posted a Type Cast operation which prompted warnings by other users about the dangers.  Apparently these operations lead to crashes,  hard drive failures, cats and dogs living together, anarchy, and eventually the fall of civilization as we know it.  tbob was simply doing a public service by keeping this weapon out of the hands of the untrained. 

 

Now we know who to blame for letting the cat out of the bag...

Message 695 of 2,635
(12,916 Views)

From:  http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=503785#M503785

 

Original Code:

 

 

 

Modified to:

 

 

 

What he really needed was:

 

 

 

 

Message Edited by Ray.R on 06-09-2010 08:57 AM
Download All
Message 696 of 2,635
(12,874 Views)

The importance of learning good Labview coding practice from the start. Here is a good example (or not Smiley Very Happy)

http://forums.ni.com/ni/board/message?board.id=170&thread.id=503503



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 697 of 2,635
(12,857 Views)

Coq Rouge wrote:

The importance of learning good Labview coding practice from the start. Here is a good example (or not Smiley Very Happy)

http://forums.ni.com/ni/board/message?board.id=170&thread.id=503503


That seems better suited for the local variables thread, not this Rube Goldberg thread. Where's the Rube Goldberg in that example?

0 Kudos
Message 698 of 2,635
(12,842 Views)

smercurio_fc wrote:

Where's the Rube Goldberg in that example?


At first glance, the wire from the first 'local variable' into 'array size' into 'N'...!  Long time since last used Labview so can't remember names of everything - just was lurking and felt compelled to reply! Smiley Happy



Never say "Oops." Always say "Ah, interesting!"

Message 699 of 2,635
(12,835 Views)

Ray.R wrote:

From:  http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=503785#M503785

 

Original Code:

 

 

 

Modified to:

 

 

 

What he really needed was:

 

 

 

 

Message Edited by Ray.R on 06-09-2010 08:57 AM

MASSIVE kudos@!


"Should be" isn't "Is" -Jay
0 Kudos
Message 700 of 2,635
(12,811 Views)