08-04-2006 06:58 PM - edited 08-04-2006 06:58 PM
@cvinyard wrote:
1) The VI takes a significant amount of time (sometimes into the hours) to complete the calculations.
OK, on my machine your code takes about 14 seconds. My version above is a bit faster but I have now found the major time killer!
You are doing the dynamic data conversion in the inner loop!
If I take that out of the inner loop, the calcuation is down to 130ms! See if you can reproduce this. 🙂
(I added some timing code to verify).
Almost 100x faster!
Message Edited by altenbach on 08-05-2006 08:24 AM
08-04-2006 08:07 PM
08-05-2006 09:54 AM
08-05-2006 10:30 AM
@Jhoskins wrote:
Hey MR. wizard i think you need to look at what version of LV you posted this in.
OK, That's better..... 🙂 Still very fast.
Enjoy!
08-05-2006 10:41 PM
Thanks for all of the comments, suggestions and improvements. (Particularly the comments about where to place the conversion - who knew it would matter, but it makes sense after having it pointed out). Adopting these changes has turned something that took all day into something that takes just a few minutes. I appreciate it, although I bet my technician (yet another primatologist) will appreciate it even more.
Feel free to put the original up on the R.G. webpage. I knew it was cumbersome, but didnt know how to improve upon it. Self taught and it shows.
Thanks again. I appreciate the advice and suggestions.
Take care,
chris