From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

I've heard stories about this guy (boolean == true?) but I never thought I would see one.
 
 

Message Edited by paulmw on 09-05-2007 08:44 AM

Message 71 of 2,571
(25,953 Views)
I'm surprised none of mine ended up in here.
___________________________________________________________________
Still confused after 8 years.
Message 72 of 2,571
(25,898 Views)

LOL! @ Ralph! 

We all have code that shows up here at one time or another.... We 'll have to dig deep to find examples from Altenbach!! 😄 😄

Message 73 of 2,571
(25,888 Views)
Attached is a "PLC Driver" in LLB form. Open the file "PLC Checksum 232.vi" as the main VI.
 
I inherited this. It was used EVERYWHERE here before I started. It is even capped off with a "if true = true, then true" code block.
Message 74 of 2,571
(25,890 Views)
Found this in a variation of the above "driver" for another instrument. The device didn't always respond as expected... so... repeat for command length. (Up to 256 char length) and wonder why it seems so slow. This function is called about 1000 times in the sequence. Also note the "special" case use of the error handler.

Message Edited by MattH on 09-11-2007 09:37 AM

Message 75 of 2,571
(25,889 Views)

Someone mentioned bad icons or at least a hint about "creative" icons when talking about the icon for "cell" values.

When I was an intern at NI (2001) I wrote up a demo that used 1 arb across 4 scopes. The VI that handled the synchronization had an icon of a kitchen sink, including the open window above it with curtains and a wonderful sunny day. The Software then called a VI to trigger the test... I drew a handgun.

Last year (2006) I took the first iteration of the "Advanced I: Architectures" course. About half way through they covered "bad" icons that were so localized that ANYONE outside of the country and some in the US wouldn't understand them... Both of my icons were first on the list.... woohoo, I made the cut!

Message 76 of 2,571
(25,902 Views)
I'm the only one that interfaces with the block diagrams in my company, heck I'm the only one that even knows a little about what labview does.
 
My last project I beat myself silly on a SubVi for a week, when I finally got it to work, the icon is just a smiley face.  That's gonna confuse someone!
___________________________________________________________________
Still confused after 8 years.
Message 77 of 2,571
(25,887 Views)

LOL!!  Oh yeas... the smiley face icon...

I did that last year.  We worked all day trying to figure out a bug.  The RF engineer & I sat down and basically coded a solution on the spot.  It was one of those "don't ask... it works... don't ask...". So I drew a smiley face Icon (twas late) and put the controls and indicators to interface with the existing code.  It was a temp fix..  Well, the smiley faced vi is still there..  LOL!!! 🙂

Smiley faces and other unsusual icons seem to last a long time..  I guess it goes with the "don't fix what's not broken" approach.  🙂

Message 78 of 2,571
(25,851 Views)
Here are a few ways to scale and sum the first three elements on an array:
 
Some ways are easier than others. Of course if we keep the upper style, we need to fight with huge diagrams even for simple programs. 😄
 
 
 

Message Edited by altenbach on 09-14-2007 02:51 PM

Message 79 of 2,571
(25,806 Views)
In this post we have an excellent example of how not to do a "Strip Path" function:

Message Edited by smercurio_fc on 09-17-2007 10:28 AM

Message 80 of 2,571
(25,759 Views)