BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Just playing around a bit....



please note that this is completly done in LV without changes made in Paint!


Norbert

[Edit] This is all about style guides, isn't it? 🙂


Message Edited by Norbert B on 07-16-2008 07:06 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 301 of 2,608
(13,602 Views)
Are you referring to the example I posted?  If so, yes, done in Paint. 
I was lazy 😉
Message 302 of 2,608
(13,538 Views)


JoeLabView a écrit:
Are you referring to the example I posted?  If so, yes, done in Paint. 
I was lazy 😉


Yes.

"Ceci explique cela !"

Message 303 of 2,608
(13,503 Views)
Hmmm.. Let's see.. I can turn left, hop across the intersection, go down to the subway, take the subway north, go up the subway stairs, take the trolley to 54th street, get off, take the bus down to 5th, hail a cab, get out, walk three blocks, hop onto the helicopter that's waiting for me, get off at the rooftop, take the elevators down, and then walk out the front door.

-OR-

I can just walk across the street.

This:


vs

this:
 

from: http://forums.ni.com/ni/board/message?board.id=170&message.id=342500

Message 304 of 2,608
(13,454 Views)
Maybe they were just trying to rack up some more 'frequent wire' miles?  Smiley Very Happy
Message 305 of 2,608
(13,445 Views)
now... How could I miss that one as a R-G code???  LOL!  Good catch smercurio
Message 306 of 2,608
(13,437 Views)
Hi,

more classic Rube-Goldberg code in here...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 307 of 2,608
(13,291 Views)
  1. Transpose the Nx2 to a 2xN 2D array
  2. Reshape the array to a 1D array of size 2N
  3. Split the array at postion N
  4. (Here we are actually done, but the shown code does two more splits of the result to ensure that nothing is left at the end :o.) 

Sorry, if you cannot figure out the code, load it in 8.6 and do a quick cleanup with the cleanup button. It does wonders here. 😉

To ensure proper operation, we also need to multiply by 1 and to keep the universe in balance we need to ensure that 50% of the wires flow right-to-left. For artistic values, let's make at least 5 coercion dots. (Cherries on top!) 😄

 

(See the original thread for better alternatives.)

 

A possible alternative:
Message Edited by altenbach on 08-19-2008 01:32 PM
Message 308 of 2,608
(13,153 Views)

Hmm....

 

What's the purpose of the outer loop??? Once stop is pressed, the inner loop stops, but since the outer stop button has already been read,

the inner loop will spin once more before the outer loop can stop. Why??

 

 

A better solution:

  1. Make the boolean "latch action" and wire it in the inner loop in place of the local.
  2. Delete the outer loop.
  3. Delete the "write local" and diagram constant.

 

(Original source)

Message Edited by altenbach on 08-27-2008 08:52 AM
Message 309 of 2,608
(13,040 Views)

To unflatten a little endian string to a 2D I16 array is a near atomic operation (see 1) ,

...but just for fun, we could use a FOR loop and a formula node instead (see 2).

Both give the same result.

 

 

 

(adapted from this post)

Message Edited by altenbach on 08-28-2008 12:17 PM
Message 310 of 2,608
(12,982 Views)