BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

*duplicate post*

---
CLA
0 Kudos
Message 1451 of 2,625
(11,462 Views)

@altenbach wrote:

I am always getting criticized for using complex numbers when dealing with simple 2D geometries. But look at the difference! (seen here)

 

(No FOR loop, no formula node, no squares, no square roots, no bundle, etc...) 😄

 

 


Smiley Surprised

Once again you've simplified the code by making it complex! I think this phenomena should be called "altenbach's paradox".

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
Message 1452 of 2,625
(11,444 Views)

TroyK wrote:

Once again you've simplified the code by making it complex! I think this phenomena should be called "altenbach's paradox".


Is it really that more complex?  If you understand trig, it isn't really that more complex.  Though, that could be my Electrical Engineering coming into play where we use complex numbers all the time (for AC circuits).  However, if you ever do perform simplification using complex numbers, please use comments explaining it since it is obvious that a lot of people don't quite understand it.


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
Message 1453 of 2,625
(11,432 Views)

I guess my pun was a bit vague.

 

Simplified with complex numbers... get it?

Maybe it's just my nutty brain that found that amusing.Smiley Embarassed

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
Message 1454 of 2,625
(11,430 Views)

You garnered a titter from me at least!

---
CLA
Message 1455 of 2,625
(11,410 Views)

While we are on the topic of when to use CDB data type to simplify code (As opposed to missusing Dynamic Data Type  and "merge signals" no less!)

 

I had to follow Christian's exellent example here

 

Spoiler
Snippet's would be a wast of time with the missing typedefs and lack of means to simulate the actual signal so... if you're interested go look for yourself.  sorry

"Should be" isn't "Is" -Jay
0 Kudos
Message 1456 of 2,625
(11,326 Views)

Ok - I will admit that this is horrible.

This is my code and it makes me sick. I'm sure it's a Rube but I can't for the life of me work out how to un-Rube it.

10 functions all identical all doing COMs with 10 different Instruments of the same type. Need to run as fast as possible and probably have limited memory due to complex maths funtions taking place elsewhere on arrays.

(SubVI and all subfunctions are re-entrant to ensure parallelism)

 

Surely this is a rube - any ideas on how to fix it?

 

Nasty.png

Thanks

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
Message 1457 of 2,625
(11,214 Views)

What if you would use an autoindexing parallel FOR loop and configure it for 10 parallel instances? 

 

Do you have 10 different serial ports?

Message 1458 of 2,625
(11,211 Views)

I do have 10 different serial ports - what is this

" autoindexing parallelFOR loop "
I think I am missing something here
CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 1459 of 2,625
(11,208 Views)

@James_W wrote:

I do have 10 different serial ports - what is this

" autoindexing parallelFOR loop "
I think I am missing something here

Found it - thanks Genius!!

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 1460 of 2,625
(11,203 Views)