From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Computer running LabView loses time

I have found a sort of fix to this in that I now read the time from a stable device (another pc with no time drift) through LabView (via a GPIB command). I can either timestamp this to file at each measurement or convert it to an elapsed time from start of program. This can be done by converting time to elapsed time from a referenece date (see labview) at program start and at each measurement. Then subtract the start time to get elapsed time.

This circumvents the clock lag on the pc running Labview (for the time being). I can't use the internet to
update correct time so this works for the moment.

GP
0 Kudos
Message 12 of 14
(468 Views)
I have found a sort of fix to this in that I now read the time from a stable device (another pc with no time drift) through LabView (via a GPIB command). I can either timestamp this to file at each measurement or convert it to an elapsed time from start of program. This can be done by converting time to elapsed time from a referenece date (see labview) at program start and at each measurement. Then subtract the start time to get elapsed time.

This circumvents the clock lag on the pc running Labview (for the time being). I can't use the internet to
update correct time so this works for the moment.

GP
0 Kudos
Message 13 of 14
(468 Views)
Laurent wrote:
>
> My LabVIEW data acquisition application running under Win 98 also
> slows down my computer time dramatically. But I cannot envisage to
> restart the computer because it is a standalone application. Isn't it
> a way to force Windows time to BIOS time, with a process written or
> not in LabVIEW ? Thanks for your ideas.

Use Dimension 4 to go to the Internet, read the correct time, & reset
your PC clock. It can run at set intervals, or once on reboot.

Caution: it may disrupt the timing of your program if you reset the time
in the middle of a loop or of a timed delay!

Win2000 seems less prone to time-loss problems.

Also search zone.ni.com & NI developer zone for other references.

Mark
0 Kudos
Message 14 of 14
(468 Views)
Mark,


Thanks for that. This is one of the first Labview routines that I have written. I
realise it may be worth restructuring the routine to see if that helps. The routine actually uses frames to execute the serial and GPIB commands (with ms waits in each frame). This all happens in a loop which executes after a set wait (sampling) time.

789
Data is written to a file (size of which is set at start).


I'll try some different things. I'm puzzled by the fact that on another make of pc (Dell rather than HP but also with Win95), time drift doesn't appear to be a problem. Any thoughts on why different hardware behaves differently?


GP
0 Kudos
Message 7 of 14
(735 Views)