11-08-2016 10:12 AM
@Nando88 wrote:I will leave the vi as an attachment.
Looks extremely convoluted. Way too much code!
The first loop can be replaced by a simple "index array". Why would you need to sort the same array twice in parallel? Wouldn't once be enough? Why is the count DBL instead of an integer? The second loop could use a conditional tunnel for 10% of the current code. Why do you wire the lower array twice into the third loop stack instead of using autoindexing?
A good exercise would be to try again and do it all in a single simple loop!
11-10-2016 10:51 AM
@altenbach wrote:A good exercise would be to try again and do it all in a single simple loop!
Here's one simple possibility (the second loop is not really needed, but without it you would need to transpose at end)