06-08-2007 09:02 AM
06-08-2007 10:53 AM
You mean every 20s, not 20ms?
You should really use an event structure as in my example, because the button event will be much more accurate and you still don't need to spin the loop like crazy. Your stop button is not really hooked up at the moment, why not?
Why so complicated?
06-08-2007 11:20 AM
06-08-2007 01:27 PM
06-08-2007 06:06 PM
@roiht wrote:
Hi Thanks again for the reply,
Actually due to some complex code in my program every time I run my while loop in my attached vi. It takes different abount of time in ms(sometimes 750ms sometimes 760ms) so the time difference between the loops is different.
I don't see anything that takes 750 or 760ms in the VI that you attached above. There is also only one loop so there cannot be a "difference between loops". It seems you attached the same old broken stopwatch monstrosity again.
Can you try to attach something more interesting? 🙂
06-09-2007 01:36 AM
06-09-2007 11:38 AM - edited 06-09-2007 11:38 AM
@roiht wrote:
Actually my code is a bit complex in my full vi and running on real time...so as you know it depends on the OS than... and thus I'm getting variable time differences everytime loop iterates. ....that's the problem and I wish to figure the time taken by everytime iteration which changes everytime....so attached the vi above . Could you please help me with that.
Sorry, I cannot help because the VI you posted seems to have very little to do with the problem you just mentioned above.
You are talking about variable time differences per iteration, but the "stopwatch.vi" does not measure loop times, just the time between manual events. What kind of events are you measuring on your RT system? How are you measuring them?
So what do you actually want?
Do you actually need to see the timer progress, wasting time constantly updating the display, or is it sufficent to see the elapsed time once the timer stops?
Message Edited by altenbach on 06-09-2007 09:43 AM
06-14-2007 10:26 AM
06-14-2007 12:06 PM
06-15-2007 02:13 AM