LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to decrease the time needed to run this VI?



@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

0 Kudos
Message 11 of 15
(924 Views)
Told ya conversion was the killer Smiley Wink

reason number 23 why I never got on the Express bandwagon


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 12 of 15
(913 Views)
Hey MR. wizard i think you need to look at what version of LV you posted this in.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 13 of 15
(894 Views)


@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!

0 Kudos
Message 14 of 15
(888 Views)

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

 

 

0 Kudos
Message 15 of 15
(865 Views)