BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

I don't know. Even though this has nothing to do with LabVIEW (or software at all) this just somehow seems to belong here.

=====================
LabVIEW 2012


0 Kudos
Message 861 of 2,635
(11,736 Views)

Have to assume this post could be cleaned up much further using in range and coerce.

0 Kudos
Message 862 of 2,635
(11,611 Views)

I wouldn't call that a Rube.  The wiring could be cleaner.  And there may be a way to tighten it up by rearranging a few math operations.

 

If you think an In Range and Coerce really cleans it up, please post an example showing that.

0 Kudos
Message 863 of 2,635
(11,610 Views)

Hmmm. Count the keystrokes----

 

R-G = Text?

count the keystrokes.png


"Should be" isn't "Is" -Jay
Message 864 of 2,635
(11,531 Views)

You have GOT to see this post on Lava! Smiley Very Happy

 

=====================
LabVIEW 2012


0 Kudos
Message 865 of 2,635
(11,411 Views)

You'll note that I also provided a link to the source, which has some more stuff - http://lavag.org/topic/10670-wired-wires/


___________________
Try to take over the world!
0 Kudos
Message 866 of 2,635
(11,399 Views)

I saw the link after I posted. Now that is some REALLY cool stuff. I especially liked this one!

=====================
LabVIEW 2012


0 Kudos
Message 867 of 2,635
(11,393 Views)

I wonder how long it took to wire all this up... (only part of the diagram is shown! 🐵

 

 

All I know is that it took me ~60 seconds to do the same functionality from scratch... 😄

 

 

 

(seen here)

Message 868 of 2,635
(11,288 Views)

Why the loop? If you needed a loop use an Event. Pointless having it loop if nothing is changing.

Regards
Ray Farmer
0 Kudos
Message 869 of 2,635
(11,264 Views)

 


@Ray Farmer wrote:

Why the loop?


 

The original code has a loop around it (no wait) so changes in the controls are updated. I guess it got clipped in the image above, but feel free to look at the original link. I retained that feature.

 

Yes, for a more polished application, an event structure should be used, but this is just a simple code demo. Introducing an event structure would have cost another two minutes of coding, would have confused the newcomer by introducing an unrelated new element, and would have taken attention away from the answer to the actual question. Let's not complicate things! 🙂

0 Kudos
Message 870 of 2,635
(11,260 Views)