BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Highlighted

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,226
(702 Views)
Highlighted

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

 

.


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

@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

 


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

@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,226
(569 Views)
Highlighted

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.
0 Kudos
Message 2215 of 2,226
(557 Views)
Highlighted

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

 

0 Kudos
Message 2216 of 2,226
(530 Views)
Highlighted

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! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
0 Kudos
Message 2217 of 2,226
(512 Views)
Highlighted

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,226
(485 Views)
Highlighted

Does anyone see a better way to do this?

 

johntrich1971_0-1599844269494.png

 

Seen here .

Message 2219 of 2,226
(407 Views)
Highlighted

@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?


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 2220 of 2,226
(401 Views)