LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use the count tick for measure a duration of a process?

Hi all

I intend to use the different of two count tick for measuring the duration of the process as shown in my code. But so far, I struck with two problems.
1. I cannot initialize the count tick function.
2. I cannot get the result from that code.

Can anyone help me in this, please?

Thanks,

Noppadon

Message Edited by Noppadon on 05-14-2005 04:01 AM

0 Kudos
Message 1 of 8
(3,776 Views)
Just move the initial tick count out of the loop !
CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 8
(3,770 Views)
Hi Chilly

Many thanks, and as you say, it works after I remove the initial tick count outsind the whil loop, but that time is not like I expect. Because I need to get the execution duration in the sequence loop.

thanks,
Noppadon
0 Kudos
Message 3 of 8
(3,766 Views)
That's different...
If you want to time the duration of a process, you ahve to add a frame in the sequence, before reading the ticks. leave the iniatial tick count inside.
See the attachment

CC
Chilly Charly    (aka CC)
0 Kudos
Message 4 of 8
(3,761 Views)
Hi

That is sound great, but I cannot open the attachment, because I still uses version 7, so could you please save in Version 7 ?

thanks,
Noppadon
0 Kudos
Message 5 of 8
(3,755 Views)
Here it is...
Chilly Charly    (aka CC)
0 Kudos
Message 6 of 8
(3,753 Views)
For easy code readability, I would suggest a 3-frame flat sequence to isolate the timing process from all the rest of the code that could occur in a typical loop. (Otherwise you're also never quite sure if the start timing really occurs immediately before the process to be timed.)
0 Kudos
Message 7 of 8
(3,745 Views)
Thank you very much in this.

Noppadon
0 Kudos
Message 8 of 8
(3,726 Views)