BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code


@altenbach wrote:

@JÞB wrote:
I would bet a kudos here and wherever AQ responds that , that right there is a default error ring backsaved for previous version;)   

 

Really? There is a more proper error constant in the other case structure to the right. Back-saving would have affected both. I also have never seen a default error constant where the error is TRUE.


Not if only 1 was backsaved. Bear in mind, there is no LabVIEW for Android viewer. But, I'll double down 2 kudos!


"Should be" isn't "Is" -Jay
0 Kudos
Message 2251 of 2,571
(11,164 Views)

@altenbach wrote:

@JÞB wrote:
I would bet a kudos here and wherever AQ responds that , that right there is a default error ring backsaved for previous version;)   

 

Really? There is a more proper error constant in the other case structure to the right. Back-saving would have affected both. I also have never seen a default error constant where the error is TRUE.


Yeah,  really 

Its nearly too obvious for the thi@ thread !

 

Danm shame  though  


"Should be" isn't "Is" -Jay
0 Kudos
Message 2252 of 2,571
(11,155 Views)

Yes, this is only the tip of the iceberg!

 

 

altenbach_0-1616351260476.png

 

(more here)

 

Message 2253 of 2,571
(11,021 Views)

I came across this many years ago.

Bad LabVIEW Code.png

It took me a long time to figure out what it does.  It takes a floating point number in the range of 0 - 100 (which represents a duty cycle) and scales it )linearly) to an integer in the range of 0 - 1200.  So it's the same as this:

x12.png

"If you weren't supposed to push it, it wouldn't be a button."
Message 2254 of 2,571
(10,987 Views)

@altenbach wrote:

Yes, this is only the tip of the iceberg!


The tip of the Goldberg?

Message 2255 of 2,571
(10,968 Views)

(seen here)

 

I have obviously a serious problem trying to fit data to a single exponential. I am sure you can immediately see what I am doing wrong after studying a picture of the context help; 😄

 

(Similar: My car does not work, please fix! Here's a picture of the glossy sales brochure!)

 

altenbach_0-1616612609264.png

 

 

 

0 Kudos
Message 2256 of 2,571
(10,763 Views)

(seen here)

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2257 of 2,571
(10,588 Views)

I am scratching my head for an hour but I still have that nagging feeling that this code fragment could be simplified.

altenbach_0-1616806827461.png

 

(seen here)

 

Message 2258 of 2,571
(10,573 Views)

For something so simple I would just use an expression node 😄

Capture.PNG

Message 2259 of 2,571
(10,383 Views)

@Gregory wrote:

For something so simple I would just use an expression node 😄

Capture.PNG


 

This seems to act like the "always copy" function because it creates a new buffer allocation. Except for very rare cases, these decisions should be left to the compiler.

0 Kudos
Message 2260 of 2,571
(10,369 Views)