NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Active Participant
Andrey_Dmitriev
Posts: 1,470

Re: Rube Goldberg Code


Ben wrote:

...

"

 - c'mon Christian, show us the REAL solution that uses only 2 base functions!!! - you know you want to:smileywink:

 



You're right, but it wasn't specified overall amount used functions. My solution uses also only two base functions, but multiple times. Just created another example of "Rube Goldberg Code" :smileylol:

 

 

Active Participant
Hornless.Rhino
Posts: 599
0 Kudos

Re: Rube Goldberg Code


SnowMule wrote:

Shouldbe easy enough to clean up with a screen thisbig. :smileyvery-happy:

 



Just use block diagram cleanup and hope for the best :smileytongue:

Active Participant
J.Mamakos
Posts: 269

Re: Rube Goldberg Code

[ Edited ]

This, this library makes me want to cry every time I open it!  I was given it not so long ago, accompanied by a jovial request to "simply update this to LabVIEW 8.5 and fix any bugs you find".  If you ever start to feel too relaxed, I hope this will help to reinstate your stress levels to the hights that they should normally be. :smileyhappy:

 

A few pictures to tickle your taste buds:

 

Spoiler
Horrible 1.JPG

Horrible 2.JPG

Horrible 3.JPG

Horrible 4.JPG

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

Currently migrating/rewriting code from LabVIEW 6.1 to 8.5
Member
PiDi
Posts: 76

Re: Rube Goldberg Code

Some time ago, in some spaghetti-horror code, I've stumbled upon following chunk:

check.png

 

Yeah, why using new value when old one is the same? :smileyvery-happy:

Active Participant
Hornless.Rhino
Posts: 599
0 Kudos

Re: Rube Goldberg Code

Maybe they wanted a time delay

Knight of NI
Ray.R
Posts: 10,210

Re: Rube Goldberg Code

[ Edited ]

Saw this in code I am working on.  I'll be able to tease the author..  LOL!

 

top: original

 

bottom non-RG

 

.
(starting to) See Life in a brand new way...

b* ^ )
Proven Zealot
GerdW
Posts: 7,181

Re: Rube Goldberg Code

Hi Ray,

 

well, you could omit the GetDateTime function too as FormatDateTimeString already uses current time as default input...

Best regards,
GerdW


CLAD, using 2009SP1 + LV2011SP1 on WinXP+Win7+cRIO
Kudos are welcome :smileywink:
Knight of NI
Ray.R
Posts: 10,210
0 Kudos

Re: Rube Goldberg Code

That's true..  :smileyhappy:  I RG'ed myself

.
(starting to) See Life in a brand new way...

b* ^ )
Trusted Enthusiast
LV_Pro
Posts: 2,820

Re: Rube Goldberg Code

It was probably done in one of the 5 min. updates before a demo! Or  - my brain ws fried from looking at someone's "regular expressions" (why they are called "regular", sort of like "common sense", an oxymoron!)

Putnam Monroe
Certified LabVIEW Developer

Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5


LabVIEW Champion



Knight of NI
Ray.R
Posts: 10,210
0 Kudos

Re: Rube Goldberg Code

[ Edited ]

LOL!!  Glad you like regEx :smileyvery-happy:  I might be able to squeeze a few more in there.

 

Check your PM...  I'll give you an update since last week. 

 

Now my turn to check for Rube...

 

Is the following code a Rube?  For some reason, I seem to think there is a better way to get a string of a 4 digit number...

Ah crap..  I just thought of it...  Using a regEx, of course...  I'll post the Rube code anyway..

 

 

.
(starting to) See Life in a brand new way...

b* ^ )
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page