02-20-2019 02:35 AM - edited 02-20-2019 02:54 AM
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.
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.
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
02-22-2019 02:22 AM
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