From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronize FPGA clock to RT clock ?

Solved!
Go to solution

Hello,

 

I use a sbRIO-9612.  Data are acquired for several weeks, and the problem is that the RT clock drifts. I found a technical document for synchronizing an RT clock with SNTP server :

http://digital.ni.com/public.nsf/allkb/F2B057C72B537EA2862572D100646D43?OpenDocument

 

But, I did not found anything about FPGA clock. Since my data are acquired by the FPGA, my question is : how can I synchronize my FPGA clock with my RT clock or SNTP server ?! (it is probably a stupid question, but it explains clearly my problem) Is sbRIO suitable for my need ? Should I give up any "FPGA based acquisition" and use another hardware architecture to perform data acquisition synchronization ?

 

Thank you in advance for any help.

 

Julien

 

0 Kudos
Message 1 of 6
(6,496 Views)
Solution
Accepted by topic author Julien_31

Hi Julien,

 

Take a look at the "RT Masters FPGA Synchronization Example.vi" on the FPGA Timekeeperpage.  There's a subVI that uses a timed loop to periodically write the current time to the FPGA so that the FPGA can have a synchronized time domain with respect to RT.  If you have questions about that example, try posting them to the Project's Discussion category.

 

- Steve K

 

Message 2 of 6
(6,488 Views)

Hi Steve,

 

Thank you very much for this very interesting link. That's exactly what I need !

 

Maybe I will have some questions about the library when I try to use it. At the moment, I have just 1 question : password is needed to look at some VI's diagram and I don't particularly want to know all the details, but I'm curious to know which resources are used on FPGA to perform that ?

0 Kudos
Message 3 of 6
(6,482 Views)

You can always ask, there's no harm in asking;)  Post your request to their forum if you haven't already.

 

In general, I've seen NI password protects VIs to A) protect users from internal methods that are undocumented and pose liability concerns if used incorrectly B) protect our value-add intellectual property C) Prevent modifications to code that should not be modified under any circumstances.

 

- Steve K

0 Kudos
Message 4 of 6
(6,478 Views)

Ok many thanks. Smiley Happy

I've posted my request to the guy who developed it.

Julien

0 Kudos
Message 5 of 6
(6,470 Views)

Hello Steve,

 

I have the same issue and I cannot find "RT Masters FPGA Synchronization Example.vi" on the FPGA Timekeeperpage. How can I find this example?

0 Kudos
Message 6 of 6
(3,296 Views)