BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Not quite as exciting as the above Rube, but here's an interesting way to get the rows of an array.  I did the block diagram cleanup, so keep in mind it looked worse.  Found here:http://forums.ni.com/t5/LabVIEW/Why-my-program-not-stopping/m-p/2300632#M724468

 


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 1261 of 2,635
(11,519 Views)

According to the thread he wants to split the 2D array into 2x 2D arrays, one with the even rows and one with the odd rows. Even your cleaned code simply rattles through the array and displays the last row after a few nanoseconds, nothing else. How useful is that?

0 Kudos
Message 1262 of 2,635
(11,490 Views)

Exponentiation, the hard way (or if the exponential function never existed):

 

 

 

(seen here)

 

Also notice that with the above code the exponentian needs to be done [Dim1xDim2] times with lots of duplicate recalculations, while it would be sufficient to do it [Dim1+Dim2] times. For example, with a 1000x1000 result, the difference would be 1000000 vs 2000, or 500 times less with more efficient code.

 

Here's what I would probably do. Same result!

 


 

 

Message 1263 of 2,635
(11,420 Views)

I suppose this could go in to the funny threads as well. I do feel for Norbert though!

 

Here is an interesting rube:

http://forums.ni.com/t5/LabVIEW/Terminating-two-independent-while-loops/m-p/2323086#M728938

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 1264 of 2,635
(11,307 Views)

@.aCe. wrote:

I suppose this could go in to the funny threads as well. I do feel for Norbert though!

 

Here is an interesting rube:

http://forums.ni.com/t5/LabVIEW/Terminating-two-independent-while-loops/m-p/2323086#M728938

 


It's not just AN interesting rube.  It is a TON of rubes. *shaking head*

 

My favorite is getting a subarray of 1 element and using the type cast to turn the subarray of U8 into a U8.


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 1265 of 2,635
(11,291 Views)

I especially had to laugh about the quote "The block inside first while loop can't be small."

 

I understand it when people say they don't want/need it to be small, although I don't agree with them.

Maybe it's some kind of moral belief or esthetic principle ("and then there was free block diagram space!") 🙂

 

I always find it a challenge when people use words like never, always, can't, ...


(and yes I know I used always in this sentence 🙂 )

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 1266 of 2,635
(11,289 Views)

Rube discussed here

 

Original post:  OP was trying to apply a linear adjustment (numeric) but had created an array of strings.

 


 

 

someone suggested: for the linear adjustment

 


 

 

People should NOT overconvert!

 


 

Message 1267 of 2,635
(11,192 Views)

Homework gone wrong:

 

 

 

part of the solution... (I think)...  😉

 

 

Discussed here

Message 1268 of 2,635
(11,092 Views)

Horror!

Found here: http://forums.ni.com/t5/LabVIEW/Running-LED-in-FPGA/m-p/2332192#M730755

rube.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 1269 of 2,635
(10,959 Views)

Wow, in the lower res view here that looked like a complex timing diagram rather than a block diagram!

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 1270 of 2,635
(10,945 Views)