BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Highlighted

I had this one 

joeorbob_0-1600295650797.png

staring me in the face most of today before I finally realized what it was...

Spoiler
joeorbob_1-1600295778222.png

 -joeorbob

0 Kudos
Message 2221 of 2,237
(932 Views)
Highlighted

@joeorbob wrote:

I had this one 

joeorbob_0-1600295650797.png

staring me in the face most of today before I finally realized what it was...

Spoiler
joeorbob_1-1600295778222.png

 -joeorbob


Well...

 

Sometimes code like that is convenient during testing. If you're not sure the First Call does the job, the Boolean is a quick way to test by switching between "always true" and "first time true".

 

I'd at least make it a control. Then I can set it to true while running, and it will reset to false next time I load the code. So if I forget to remove it, at least it won't do anything.

 

Of course it should be removed after testing. But I feel this could be a "left over from testing" instead of "Rube Goldberg". 

Message 2222 of 2,237
(910 Views)
Highlighted

I am not going to repeat the entire discussion here, but the collective efforts of a few community members was able to iteratively speed this code up ~30000x (from 5 minute to a few ms) and literally reduce it to the size of a postage stamp. 😄

 

Capture.PNG

 

altenbach_0-1600807442449.png


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
Message 2223 of 2,237
(804 Views)
Highlighted

To add a single point to a chart, we apparently need to (1) take a subset containing one element, then (2) turn it into a 2D array with one element, before (3) feeding it to the chart. Repeat for four other charts. (Seen here).

 

altenbach_0-1601499481984.png

 

 

I can think of something slightly simpler. 😄


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
Message 2224 of 2,237
(642 Views)
Highlighted

(seen here)

 

My gut feeling is that this can be slightly simplified, but I cannot find a replacement. Which palette contains a wire?

 

altenbach_0-1602362262726.png


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
Message 2225 of 2,237
(523 Views)
Highlighted

@altenbach wrote:

(seen here)

 

My gut feeling is that this can be slightly simplified, but I cannot find a replacement. Which palette contains a wire?

 

altenbach_0-1602362262726.png


I took the liberty to try and simplify it a bit 😄

VinnyLaTaupe_1-1602488617475.png

 

 

Message 2226 of 2,237
(486 Views)
Highlighted

Most are familiar how to flip a boolean, but have you ever tried the double-back-flip-triple-axel-boolean operation?

(seen here)

 

 

altenbach_0-1604001845590.png


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 2227 of 2,237
(316 Views)
Highlighted

@altenbach wrote:

Most are familiar how to flip a boolean, but have you ever tried the double-back-flip-triple-axel-boolean operation?

(seen here)

 

 

altenbach_0-1604001845590.png


I believe it is called a triple lindy.

 

mcduff

Message 2228 of 2,237
(309 Views)
Highlighted

@mcduff wrote:
I believe it is called a triple lindy.

Ha! You are right! Totally forgot about this one. 🙂


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 2229 of 2,237
(293 Views)
Highlighted

It took me far too long to realize this was a parody. 

Message 2230 of 2,237
(281 Views)