Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting NTP option on RT Controller

Hi all,

I'm trying to sync my real time controller to a NTP server. 

I followed all the instructions on the following below link, but wasn't able to get the time sync to work.

https://forums.ni.com/t5/Sync-Labs/TimeSync-for-SNTP-Getting-Started/gpm-p/3543825

 

The problem is when I installed timesync, the instructions told me to modify the file "/ni-rt/system/ni-timesync/ni-timesync-sntp.ini" which is nowhere to be found in the ni-timesync folder. I was able to find the ptp ini file but not the sntp. Do I have to create the ini file myself or should it have been created when I installed timesync program into my real time controller?

 

Any help would be useful! Thanks!

 

 

0 Kudos
Message 1 of 6
(3,249 Views)

are you talking about the linux-based boxes (eg. cRIO-9064) ?

-> http://www.ntp.org/downloads.html

Linux Embedded / Kernel Hacker / BSP / Driver development / Systems engineering
0 Kudos
Message 2 of 6
(3,168 Views)

Hi

 

First thing that comes to mind is that your controller might not running VxWorks or Phar Lap OS. 

Which cRIO are you using? 

 

BTW here is a KB that can help you figure out what OS is running on your cRIO

http://digital.ni.com/public.nsf/allkb/35F1FD98520D6E0E8625783A005AF557

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

@Miro_T wrote:

 

http://digital.ni.com/public.nsf/allkb/35F1FD98520D6E0E8625783A005AF557


http://doc.ntp.org/4.1.2/hints/vxworks.htm

 

No idea about pharlap's strange partial win32 clone (if one really looks for win32 clones - go for reactos), but if they still even requires reboot for trivial things like timezone changes, I wouldn't expect anything useful related to time synchronization.

Linux Embedded / Kernel Hacker / BSP / Driver development / Systems engineering
0 Kudos
Message 4 of 6
(3,140 Views)

Here are a couple of options if your OS is Linux RT

 

Installing and Configuring NTP on NI Linux Real-Time Devices
http://forums.ni.com/t5/Example-Program-Drafts/Installing-and-Configuring-NTP-on-NI-Linux-Real-Time-...

 

Some people have also had success by using this program to set the time.

 

Solved: Re: Permissions: Setting date/time with system exec or script
http://forums.ni.com/t5/NI-Linux-Real-Time-Discussions/Permissions-Setting-date-time-with-system-exe...

 

Eric

Applications Engineer

0 Kudos
Message 5 of 6
(3,117 Views)

time/clock handling is a can of worms:

 

http://forums.ni.com/t5/NI-Linux-Real-Time-Discussions/Permissions-Setting-date-time-with-system-exe...

Linux Embedded / Kernel Hacker / BSP / Driver development / Systems engineering
0 Kudos
Message 6 of 6
(3,112 Views)