02-15-2009 08:45 PM
The PCI-1588 won't drive your windows system clock. It has it's own NI-Sync GetTime function that returns the current time. You can also program it to timestamp your sample clock or generate a synchronized clock. All of this may be over kill if what Jeff says will work.
For more information on NI-Sync check out the user manual and the help.
Here are some examples.
-Josh
02-16-2009 02:03 PM
02-17-2009 05:23 PM
Most computer clocks are updated via the internet, and are synchronized automatically about once a week- this is true for Windows 2000 and later. I'm not sure how your system is updating without being connected to the internet, but you may find this link helpful.
aNItaB
Applications Engineer
National Instruments
02-18-2009 07:10 AM
02-18-2009 11:51 AM
Jeff,
How is the system clock updated by the PC? Does it resync to the Real Time Clock regularly when the computer is on or is it based on periodic interrupts? I am running a Sony Vaio on Windows ME. Where can I get documentation on how it is updated because I think my updates are taking longer to be triggered as the system clock that times it is slowing down?
02-18-2009 03:25 PM
BME
The system clock is updated only when Bill Gates gets around to it, or not updated at all if the OS is too busy. It has no connection to any external clock by itself. System clock is a very low priority in non NT based OS's. Essentially it is there as a convienience for the user.
02-19-2009 07:17 AM
Well, is this a sympton of a clock issue...the fact that the AO updates take longer and longer as the clock slows down more and more by a few seconds over the 60 minute run? I think my DAQ card is sending interrupts to the CPU during continuous data acquisition and when it services the interrupts it misses some clock updates. So the the error accumulates which manifests itself as accumulating lag in the AO updates.
02-19-2009 08:51 AM
Sorry but just to confirm, do you need to use the computer's time in this application? Would just letting the DAQ run with it's oscillator and relative time be sufficient?
Thanks,
02-19-2009 09:23 AM
02-19-2009 10:16 AM
BME genuis wrote:
Since I cannot change anything I am stuck with using the computer's time.
BME-
If this is the case- then this is the case. Your only recourse is to live with the effects of reliance on the system clock and publish this as either a known issue or a feature in the read-me file so the user understands what is occuring. You can get some relief by slowing down any loops that you have so that your code never overburdens the OS. (add "wait for next ms tick" in loops to slow them down) The OS can use the time between iterations to do its housekeeping chores and this can reduce the clock lag.