06-11-2010 08:20 AM
06-11-2010 09:15 AM
06-11-2010 09:40 AM
Hi,
As Dennis mentioned, you are relying on the PC clock, which is a free-running clock. A drift of 1sec within 1 hour means the accuracy of the PC clock is about 278ppm, which does not sound too surprising.
Since you say that this behavior only started after a power failure, could it be that while the power was out the battery of the PC was drained, and that is affecting timekeeping? This is just a theory, but it might be worth trying replacing the battery.
If you absolutely cannot tolerate drift, you might have to use one of the timing & sync products, such as the PXI-6682, which allows you to be synchronized to GPS, 1588 and other time sources.
AlejandroZ
06-11-2010 09:47 AM
06-11-2010 09:52 AM
06-11-2010 10:25 AM
POst images of your code so we can take a look.
There are many things that could introduce a small drift as you described. If you post images we can let you know if we spot anything obvious.
Without seeing the code we can only guess so... my guess is;
You are using delay timers and assuming the delay is the time you specified.
Take care,
Ben