LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPS PPS counter independent from FPGA 40MHz Onboard clock

Solved!
Go to solution

Could you give me some advice or point me in right direction?

I need accurate time/tick counter synchronized by GPS PPS synchronization signal.

I have got S.E.A. GPS cRIO Module which generate PPS signal to FPGA backplane. PPS signal rising edge precisely indicate the start of second.

When I measure number of ticks from 40MHz FPGA Onboard clock during one (PPS) second then number of ticks is not 40,000,000 ticks but something like 39,999,800 ticks.

I want measure accurately time between rising/falling edges of Digital signals. Because 40MHz FPGA onboard clock are drifting I can not use it.

How could I implement my own ticks counter witch will be tided with GPS PPS signal?

I don't expect that I could tune 40MHz FPGA on board oscillator.

Should I create my own counter which will increase counter by value 1.000,005 (40,000,000/39,999,800) every tick and this counter will run in Timed Loop (time base 40MHz FPGA onboard clock). Increment value (1.000...) will be updated every second depend on PPS vs FPGA clock drifting.

My configuration: cRIO-9025, cRIO-9116, S.E.A. GPS+ cRIO module, high speed DIs NI 9402, RT/FPGA LabVIEW 2011

Looking forward to hearing form you.
 Peter

0 Kudos
Message 1 of 4
(4,114 Views)

Hi Peter,

 

The specified Accuracy of the cRIO-9116 clock is ±100 ppm (max). This would result in an acceptable variance of 4kHz. You are seeing a variance of 200Hz which fits with the expected specification of the cRIO-9116.

 

As you expected there is not on option to tune the 40MHz FPGA on board oscillator

 

Your suggested solution does certainly sound plausible, have you begun to implement this yet?

 

Kind regards,

Daniel T
Account Manager
National Instruments UK & Ireland
Message 2 of 4
(4,035 Views)

Hi Daniel

Thank you for your reply.
I didn't begin to implement my solution yet. But I will have to start and soon 😞

I wanted to know if there are another kind of solution which I could use.

I didn't find any articles about LabVIEW FPGA and PPS synchronization and time/ticks measurement.

 

Have you or somebody else, same good advices? 🙂

 

 Peter

0 Kudos
Message 3 of 4
(4,020 Views)
Solution
Accepted by topic author JCC_(SK)

Hi all

this could help you.

 

FPGA Timekeeper

 

 

(I don't understand how this could be published on 23/05/2012)

0 Kudos
Message 4 of 4
(3,992 Views)