BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Some honorable mention, seen here:

check.png

A typical case of RubeGoldberg (doing the same operation several times as we have to process an array) paired with local variable abuse…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 1441 of 2,608
(11,446 Views)

The above is a serious abuse of Locals... 

0 Kudos
Message 1442 of 2,608
(11,418 Views)

I am always getting criticized for using complex numbers when dealing with simple 2D geometries. But look at the difference! (seen here)

 

(No FOR loop, no formula node, no squares, no square roots, no bundle, etc...) 😄

 

 

Message 1443 of 2,608
(11,326 Views)

That's why we always visit this thread.  🙂  Your simplified codes are amazing.  And we all love it..  (Even those who complain, they hide their true love for it).

 

 

0 Kudos
Message 1444 of 2,608
(11,303 Views)

 

Seen Here

Note this is 1 of 3 identicle chunks of codeSmiley Surprised  The CCT errored "Not Enough Memory..." !!! and Create Sub-vi died with too many terminals for the conn pane,  so I had to wash this section through a snipette (which repaced all the redundant write locals with p-noeds and control refs  so, doing the whole thing was a wash.

 

I'm not sure why the OP avoided an array indicator  but respected the ins and outs he established

 

We also are treated to a refreshingly safe way of abusing locals (they only perform a redundand write to the terminal) and the classic boolean case structure driven by a miss-selected compare function.  Index array resize must still be missing from Core I and look at all those dots dots dots everywhere some dots!  It must have taken hours to code and wire!

RG.png

 

We won't even ask if the OP has seen the plot visibility checkbox (youl'd have to see the rest of the code to get that):smileyvery-happy:


"Should be" isn't "Is" -Jay
Message 1445 of 2,608
(11,197 Views)

@JÞB wrote:

 

Seen Here

...

We won't even ask if the OP has seen the plot visibility checkbox (youl'd have to see the rest of the code to get that):smileyvery-happy:


Well, the visibility checkbox was not available in LabVIEW 8.x he's using.

 

What caught my eye is the sequential reading of 60 controls with a 60 frame flat sequence, one frame per terminal, forming the entire delimited string, then turning it into an array with a single element so it is accepted by "write to spreadsheet string". 😄

 

 

0 Kudos
Message 1446 of 2,608
(11,185 Views)

@altenbach wrote:

@JÞB wrote:

 

Seen Here

 


Well, the visibility checkbox was not available in LabVIEW 8.x he's using.

 

What caught my eye is the sequential reading of 60 controls with a 60 frame flat sequence, one frame per terminal, forming the entire delimited string, the turning it into an array so it is accepted by "write to spreadsheet string". 😄

 

 


It is a rather "Target Rich" enviornment for an R-G hunt (Like a "what is wrong with this picture" game preserve)


"Should be" isn't "Is" -Jay
0 Kudos
Message 1447 of 2,608
(11,172 Views)

Jeff·Þ·Bohrer wrote:It is a rather "Target Rich" enviornment for an R-G hunt (Like a "what is wrong with this picture" game preserve)

Sounds like a project I inherited many years ago that is being revisited.  I still use some of it to show why you should use shift registers (hint: the BD is 1/8 the size and run in 1/10 the time).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 1448 of 2,608
(11,166 Views)

Hold it---- Thats a Concatinate Strings (with every other element a tab) into a build array into write to spreadsheetSmiley Surprised

 

Target rich indeed!


"Should be" isn't "Is" -Jay
0 Kudos
Message 1449 of 2,608
(11,154 Views)

The sheer effort that that would have taken in the first instance is incredible.

---
CLA
0 Kudos
Message 1450 of 2,608
(11,126 Views)