BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Thank you for comforting me in this thoughts, would you mind talking to my manager xD

According to him, it was "working" before....

 

Anyway, bulldozer's on its way.

0 Kudos
Message 2211 of 2,565
(11,038 Views)

Mind-boggling detour to go from a U16 array with four elements to four scaled xy plots of an xy graph containing one point each. (seen here)

 

altenbach_0-1599283118036.png

 

.

0 Kudos
Message 2212 of 2,565
(10,940 Views)

@altenbach wrote:

Mind-boggling detour to go from a U16 array with four elements to four scaled xy plots of an xy graph containing one point each. (seen here).


Same thread, now looking at the newly attached VI that spans hundreds of screens and is crashing diagram cleanup (locking up the IDE forever!).

 

Who can find a way to do the following using code the size of a postage stamp??? 😮

 

altenbach_0-1599287538578.png

 

0 Kudos
Message 2213 of 2,565
(10,936 Views)

@altenbach wrote:


Same thread, now looking at the newly attached VI that spans hundreds of screens and is crashing diagram cleanup (locking up the IDE forever!).

 

Who can find a way to do the following using code the size of a postage stamp??? 😮

 

 


Good, it wasn't just me getting full blown LabVIEW crashes trying to work with that.  I had the Code Capture Tool crashing LV when I tried to get a snippet of a small area of the BD.

0 Kudos
Message 2214 of 2,565
(10,907 Views)

Just goes to show you that, out of all the programming languages, LabVIEW is the easiest one to produce bad code with.  Throw down a few primitives, hook them up and you have code.  With other languages, syntax gets in the way of you producing bad code - at least until you are experienced enough to get around that hurdle.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 2215 of 2,565
(10,896 Views)

Amazing. If only there was a way of converting a boolean array to number.

 

0 Kudos
Message 2216 of 2,565
(10,869 Views)

That looks like some old C-programmer was forced to use LV. Look at how well defined those 'variables' are by the helper loops and Local Variables to handle data ...

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2217 of 2,565
(10,852 Views)

If the value is in range, use the value, if not, use the clipped value... "I didn't know there was a function for that" isn't an excuse in this case.

 

Next add a value to each element, and then put them all in an array...

 

Probably more RG gems waiting to be explored in that VI!

 

In Range.PNG

 

 

Seen here.

Message 2218 of 2,565
(10,826 Views)

Does anyone see a better way to do this?

 

johntrich1971_0-1599844269494.png

 

Seen here .

Message 2219 of 2,565
(10,748 Views)

@johntrich1971 wrote:

Does anyone see a better way to do this?

 

johntrich1971_0-1599844269494.png

 

Seen here .


Ha, I just took this screeenshot to post the same, bu you were faster ...

 

altenbach_0-1599844955365.png

 

The larger code fragment can hint to a solution where the two booleans are built into an array, to be converted to a number wired to a single case structure with three or four cases, for example. I really have no idea what could be in the other cases, though, maybe just a zero diagram constant?

0 Kudos
Message 2220 of 2,565
(10,742 Views)