08-02-2010 12:26 PM
I've got a case statement inside a while loop, and I need to know how much time it takes to run (in ms)
I tried using :"Tick Count," but both the tick count before and after the case statement are giving the same time, even though the one after the case is in its own case statement box.
I'm sure there's an easy way to do this, and someone with infinite wisdom will disclose it to me 🙂
Thanks
Solved! Go to Solution.
08-02-2010 12:39 PM - edited 08-02-2010 12:40 PM
Here are three ways mentioned.
I think this one is the coolest:
One thing to notice is that 'Tick count' has a resolution of 16 ms on most OS's.
Ton
08-02-2010 12:40 PM
I created a little function that starts a timer and reads the elapsed time. Start it before yout loop and put the read outside, with a line inside the loop so it will not start before the loop is finished. In LabVIEW 2009.
08-02-2010 12:44 PM
08-02-2010 12:46 PM - edited 08-02-2010 12:47 PM
I figured it out
08-02-2010 12:50 PM
@bobholmgren wrote:
I figured it out
or maybe not, I don't see a pulldown menu on the right. I'm in Labview 7.1
08-02-2010 12:56 PM
Here is a png