Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

Timer() returns wrong value

$
0
0

 

I'm developing on LabWindows/CVI 2013.
I'm having trouble with the Timer() function.
I'm using the Timer() function as a "time-out".
Before I go into a while loop I compute a timeout time.  Each time around the loop the code calls Timer().
If Timer() returns a time that is greater than the timeout it exits with an error.
Very simple and I've used this often.

 

The problem is that every once in a while the Timer() function adds 2^32  (4294967296)  to the value it returns.
This causes the timeout to happen when it should not.

 

It does not happen on a Win7 64 bit computer that I'm testing on.
But it does happen on a Win7 32 bit computer.
Another thing that may be significant is that this loop runs in and Async timer callback.

 

Anyone have any ideas on what is causing this?

 

Thanks,

Kirk

 

 


Viewing all articles
Browse latest Browse all 5339

Trending Articles