12-03-2007 08:30 AM
12-05-2007 08:36 AM
05-23-2014 10:33 AM
This is good - is there any updated information that describes best practices for syncronizing timing between the Host PC and RT targets?
05-24-2014 08:09 AM
I've always assumed (without proof, so I could be totally wrong) that "Time" reported by the PXI would be precise, but possibly not accurate (meaning if it said 20 ms elapsed, then this is correct, but if it says that the time is 11:01, it might really be 11:02), while the PC is more likely to be accurate (because it can sync with a Time source) but not precise (because of Windows, largely). Hence I use the PXI and its clock for all the "delta-time" measurements, and if I need Absolute Time, I take a single reading on the PC at a known point in the program (say, when I start the PXI) and call this "Time Zero".
Theire are "Time Synchronization" tools that can be installed in MAX -- I've not really studied them, so don't know if they'll help.
It seems to me that if we assume that the PXI and PC clocks run at the same speed, then if we accurately know the time offset between them, we can use either clock (as appropriate) and add/subtract the offset to standardize the time measurements. So it may come down to how to get both platforms to accurately "respond" to a request to get the time. If you could do a round-trip "message exchange" between the two that was sufficiently rapid, you could use that, I suppose. Something we used a long time ago was to toggle a bit on the parallel port (what's that, Grandpa?) on the PC, read this into a DIO port on the PXI, and record the transition time ...
I'll be interested to see how you resolve this.
BS
05-27-2014 11:28 AM
NI offers several options for synchronizing systems and devices. As an introduction, it may be helpful to review the Synchronization white papers.
Bob_Schor mentioned the "Time Synchronziation" tools, by which I think he is referring to NI-TimeSync. NI-TimeSync is a software-only product that runs on RT targets. It comes with a couple of plugins that support different synchronization protocols, including one for the IEEE-1588 Precision Time Protocol; beta versions of some other plugins are also available in Sync Labs, including the SNTP and FPGA timekeeper plugins.
P.S. The RT platform is correctly spelled "PharLap."