LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I increase the execution speed of this VI?

Solved!
Go to solution

Ahhhh...OK, so now I see where you are getting your factor of 2.  Very interesting.  Another interesting thing is that if you add in the DBL conversion, this jumps to a factor of 10. Thanks a lot for looking at this guys.

 

Matt

0 Kudos
Message 11 of 16
(836 Views)

I should also go ahead and point out that there are a couple more things that can be done: the conversion of the I32s, the division of the iTime by mTime and the subsequent conversion to a long Int can be removed from the top most loop to the outside of both loops.  The End.

0 Kudos
Message 12 of 16
(830 Views)

@mtat76 wrote:

I should also go ahead and point out that there are a couple more things that can be done: the conversion of the I32s, the division of the iTime by mTime and the subsequent conversion to a long Int can be removed from the top most loop to the outside of both loops.  The End.


The compiler might already do that behind the scenes (loop invariant code motion). One of the divisions is now on an array, so you might not gain that much...

0 Kudos
Message 13 of 16
(827 Views)

Thanks, Altenbach.  I figure that but, might as well do what I can...

0 Kudos
Message 14 of 16
(823 Views)

Personally, I never trust the compiler and would move it outside. 😄

Message 15 of 16
(821 Views)

I hear that!

0 Kudos
Message 16 of 16
(818 Views)