LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay, Timer, and Sleep values are wildly off

Thanks,

I found this Automatic Loading of Interface to the Win32 Application Programmatic Interface (API) Import Librarie... with the list of the names but no discription of how to use... I assume there should be a link to the documentation. I suggested this as an Idea to close this loop.

 

Cheers!

ChipB

0 Kudos
Message 11 of 13
(869 Views)

Unfortunately I was mistaken; the problem was solved only temporarily. When my computer reboots, the problem is solved for a while. When I run some LabWindows applications, it eventually goes bad, and the timing of my timer callbacks along with Delay() and QueryPerformanceCounter() give wrong answers just as they did before. The Delay() issue I can avoid by using Sleep(), but the timer callbacks are unfixable.

 

I haven't been able to isolate it more specifically to what the magical function in these applications is that breaks things. I've just been living with the problem because on the true target computer for this application, the problem doesn't occur.

 

Brian

0 Kudos
Message 12 of 13
(808 Views)

Since you previously fixed this by upgrading the BIOS, I guess you may have seen this KB by Microsoft: http://support.microsoft.com/kb/895980

 

The Delay and Timer functions in CVI take advantage of the QueryPerformanceCounter and may be subject to this issue. However, if you have already updated your BIOS, then this may not be relevant.

 

I have also seen a similar issue to this twice before. In one case, it took us two months to discover that it was a bad motherboard. Once Dell replaced the motherboard, everything worked fine. In the other case, the system was heating up causing changes in the performance of the CPU. This one looks like a possibility for your system because you experience the problem after the system has been running for awhile. You could try monitoring your CPU temperature and see if it is within a "normal" range.

National Instruments
0 Kudos
Message 13 of 13
(795 Views)