BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code


@altenbach wrote:

@JÞB wrote:

@altenbach wrote:

Sometimes I feel evil. 😄


X(radians)+pi?  Aren't there 2pi radians in a circle? 


That pi gets subtracted again later. It just makes sure that the remainder is mapped into -pi..pi instead of 0..2pi.


EDIT: nevermind.  I had it turned around. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 2591 of 2,599
(756 Views)

@JÞB wrote:
EDIT: nevermind.  I had it turned around. 

Turned around by 360 degrees? 😄

0 Kudos
Message 2592 of 2,599
(746 Views)

@altenbach wrote:

@JÞB wrote:
EDIT: nevermind.  I had it turned around. 

Turned around by 360 degrees? 😄


That would have actually worked out just fine. I was looking backwards by pi.


"Should be" isn't "Is" -Jay
0 Kudos
Message 2593 of 2,599
(694 Views)

Sometimes the origin story for Rube Goldberg code lies with instructions from the professor:

 

Quote: 

He only uses LabVIEW and apparently gives this assignment to students doing research under him every now and then.

P.S. He instructed me to try implementing this using a stacked sequence structure and local variables

 

(seen here)

 

 

Message 2594 of 2,599
(589 Views)

Maybe this is his professor.

 

a3Q07Kv_460s.jpg

0 Kudos
Message 2595 of 2,599
(467 Views)

Surprisingly 'cute' and organized VI, but so much unnecessary code!

I need to observation - NI Community

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2596 of 2,599
(400 Views)

@Yamaeda wrote:

Surprisingly 'cute' and organized VI, but so much unnecessary code!

I need to observation - NI Community


"...I built a VI to ...", is a code smell when used by beginners 😁.

 

 

Message 2597 of 2,599
(381 Views)

@Yamaeda wrote:

Surprisingly 'cute' and organized VI, but so much unnecessary code!

I need to observation - NI Community


 

Well, at least the wiring looks pretty neat. (Yes, done right, the same code functionality could fit on a quarter postcard.)

 

altenbach_0-1731684998947.png

 

However, I am very suspicions about the serial communication in general.

 

Message 2598 of 2,599
(309 Views)

If a FOR loop should iterate based on the number of rows in a 2D array, N does not need to be wired, of course.

 

However, if we don't trust the compiler we better "calculate" the number of rows based on a one element subset of the array size array turned into a spreadsheet string, then parsed as decimal integer. Why not?

 

(I am wondering how long it took the OP to get this N value output just right! Guessing hours! 😄 )

 

altenbach_0-1734710765575.png

 

 

(seen here)

 

The following would be equivalent, but since the code is fundamentally incorrect for the given problem, we don't really care.

 

altenbach_1-1734711040834.png

 

 

 

0 Kudos
Message 2599 of 2,599
(32 Views)