Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Set GPS Time to cRIO-9042 Controller

Hi All,

I want to set the GPS time to the controller of cRIO-9042.

I followed the steps below:

1) In FPGA get the GPS time throw 9467,

2) Read the GPS time Control on RT, 

3) Use Set Time.vi to set the GPS time to the controller of cRIO-9042. (Set Time.vi is in the folder \vi.lib\nisyscfg)

The results are as follow:

The time difference between GPS and RT is close to 0 when execute set time.vi and then time difference changes back to a specific value 0.95s.

11.png

When I use a cRIO-9063 to do the same test, the time difference between GPS and RT is close to 0 when execute set time.vi and then time difference getting bigger as expected because of the RT controller's clock accumulation error.

9063-2.png

The Software Environments are as follows,

cRIO-9042: LV 2018 SP1; NI CompactRIO 18.5

cRIO-9063: LV 2015 SP1; NI CompactRIO 15.5.

 

Thanks.

Henry

0 Kudos
Message 1 of 2
(1,893 Views)

Hi,

Maybe you can refer to this kB to try improve the accuracy of the timing: Set RT System Time to Windows PC Time Down to Milliseconds

0 Kudos
Message 2 of 2
(1,864 Views)