03-27-2017 05:11 PM
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!
04-02-2017 07:51 PM
are you talking about the linux-based boxes (eg. cRIO-9064) ?
-> http://www.ntp.org/downloads.html
04-05-2017 02:17 PM
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
04-05-2017 07:47 PM
@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.
04-07-2017 12:01 PM
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
04-07-2017 03:06 PM
time/clock handling is a can of worms: