08-08-2013 06:44 PM
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
08-08-2013 10:03 PM
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.
08-08-2013 10:12 PM
@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.