LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tick Count Large Numbers

Hello,

 

I'm using a tick counter inside a sequence frame as a means of inputing time elapsed in the frame into a linear equation with respect to time. The tick counter is behaving very strangely, and spitting out numbers that are astronomically larger than possible. Any suggestions as far as root cause of this problem?

 

I've attached a screenshot and my .vi.

 

Thank you.

-Matt

0 Kudos
Message 1 of 3
(2,482 Views)

I don't see a problem -- with the counter that is. The rest of the code is another matter.

 

Why is number astronomically larger than possible? 266+k milliseconds is only between 70 and 80 hours.

 

Mike...

 

PS: using the tick count is dangerous because it is only a U32 and the count will rollover every 40-odd days.


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(2,461 Views)

 


@MattWarnock wrote:

I'm using a tick counter inside a sequence frame as a means of inputing time elapsed in the frame into a linear equation with respect to time. The tick counter is behaving very strangely, and spitting out numbers that are astronomically larger than possible. Any suggestions as far as root cause of this problem?



The VIs that you had attached, I don't see any 
Tick Count function being used..!!

What do you mean by astronomically larger than possible..??

 

Tick Count's output data type is of U32 (unsigned integer 32 bits) and that can hold value upto 4294967295.

 

Check out the help documentation and you'll get to know more about this function.

 

 

Tick count - U32 data type


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 3
(2,458 Views)