Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

tick count

Solved!
Go to solution

Can any explain with an example the working of tick count and what what  value it get displays. please mail me on pnraja89@yahoo.com

0 Kudos
Message 1 of 6
(7,421 Views)

Hi raja8989!

 

  • The Tick Count (ms) Function is a free running counter with 2^32 range, you can use it to benchmark parts of you code.
  • The Tick Count Express VI allows you to configure ticks, milliseconds or microseconds - it ships with the FPGA, RT, or DSP modules.

Does that help?


Regards,

Peter D

0 Kudos
Message 2 of 6
(7,405 Views)

can u please clearly explain with help of a example . i am not able to get a perfet clarity on this please 

0 Kudos
Message 3 of 6
(7,387 Views)
Solution
Accepted by topic author Nagaa

Thanks for getting back to me.  The following example shows the functionality of the function:

 

MillisecondTimer.png

 

If you run the VI you will see the current value of the free running timer, and this will update every 100 milliseconds due to the "Wait on Next ms Multiple".

 

Another example can be found by following these steps; press Ctrl+H to display Context Help, mouse over the Tick Count (ms) function, select Detailed Help and navigate to Open Example.  This example gives a common use case for Tick Count (ms); timing how long some code takes to execute.


Regards,

Peter D

0 Kudos
Message 4 of 6
(7,384 Views)

thanks a lot sir

 

now i came know what is tick count now exactly 

 

but when i runned ur code at first count this is displaying the value 24651619 .  why doesnt this start from zero ?

0 Kudos
Message 5 of 6
(7,380 Views)

Per Help:

 

The base reference time (millisecond zero) is undefined. That is, you cannot convert millisecond timer value to a real-world time or date. Be careful when you use this function in comparisons because the value of the millisecond timer wraps from (2^32)1 to 0.

 

I believe the initial zero occurs when the computer is powered up or rebooted. Give it a try.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 6 of 6
(7,363 Views)