03-30-2014 02:06 PM - edited 03-30-2014 02:07 PM
*duplicate post*
03-30-2014 05:54 PM
@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...) 😄
Once again you've simplified the code by making it complex! I think this phenomena should be called "altenbach's paradox".
03-30-2014 07:29 PM
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.
03-30-2014 07:33 PM
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.
03-31-2014 02:02 AM
You garnered a titter from me at least!
04-02-2014 08:58 AM
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
04-07-2014 11:04 AM
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?
Thanks
James
04-07-2014 11:08 AM - edited 04-07-2014 11:09 AM
What if you would use an autoindexing parallel FOR loop and configure it for 10 parallel instances?
Do you have 10 different serial ports?
04-07-2014 11:14 AM - edited 04-07-2014 11:15 AM
I do have 10 different serial ports - what is this
" autoindexing parallelFOR loop "
I think I am missing something here
04-07-2014 11:18 AM
@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!!