From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Can a cRIO-9042 be set as an NTP Server source?

Good morning,

 

I have an application that will be deployed in a remote location with intermittent connection to the cellular network. I have multiple instruments that I would like to time synchronize and these instruments can utilize NTP.

 

I would like to know if it is possible to setup the cRIO controller to be the NTP Server source for the system as all devices in the system will be connnected through an ethernet switch. At present I have the NTP software installed and enabled on the cRIO but I am not at all familiar with how to set the NTP up. I followed some of the tutorials on NI website that I found for installing and setting up the cRIO to connect to the NTP servers and that seems to work.

 

 

Steven Howell
Controls and Instrumentation Engineer
Jacobs Technologies
NASA Johnson Space Center
0 Kudos
Message 1 of 10
(1,719 Views)

Hi Steven,

 

we have a site in our Doku-Wiki about NTP on cRIOs: https://dokuwiki.hampel-soft.com/kb/ni-rt/linuxrt/ntp, this may help you.

 

Cheers

0 Kudos
Message 2 of 10
(1,688 Views)

Thank you I will give it a look!

Steven Howell
Controls and Instrumentation Engineer
Jacobs Technologies
NASA Johnson Space Center
0 Kudos
Message 3 of 10
(1,683 Views)

Hi Steven,

 

Any luck getting your cRIO to be an NTP server?

 

I'm trying to do the same thing. I have a DAQ system that could wind up in the middle of nowhere, so I have a NI-9467 GPS module, which gets the time and then I use that GPS time to set the RT Linux system time (fairly accurately). But like you, I then want the cRIO to be an NTP server for some other devices in the DAQ system.

 

I find it hard to believe we are the first ones to want this. But I suspect I'm finding what you found: all of the discussion is about having a cRIO GET time from an NTP server ... that part already works for me. But I suspect the RT Linux only has the NTP client installed by default. I'll start googling for a solution, but I was hoping you already found one ...

 

Thanks,

Greg

 

 

0 Kudos
Message 4 of 10
(1,427 Views)

Just to throw out an alternative at a decent price: GPS NTP Network Time Server (TM1000A) 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 10
(1,422 Views)

Thanks for the link. This certainly looks easier than me spending more time trying to make a cRIO into an NTP server. Have you personally used this model?

 

Thanks again,

Greg

0 Kudos
Message 6 of 10
(1,402 Views)

@gpmathis wrote:

Thanks for the link. This certainly looks easier than me spending more time trying to make a cRIO into an NTP server. Have you personally used this model?


Yes I have.  It is simple to setup.  It was more effort to get my Windows machine to see it properly ("internet time", and Windows 10 hides it more than Windows XP and Windows 7).  You just need to make sure it has a good GPS signal.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 10
(1,397 Views)

I guess my first post to this topic was a bit short. To elaborate it a bit more: it is possible to configure the NTP-Software on a cRIO to work as a server. As described in this link (https://dokuwiki.hampel-soft.com/kb/ni-rt/linuxrt/ntp#permissions) it's a matter of the permission configuration. In the default configuration, only the localhost has permission to query the time. But you can set it to the whole subnet, then every device in this subnet can query the time.

 

For example, with the following line in the NTP configuration (/etc/ntp.conf), every device in "192.186.0.0" can access it:

restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap nopeer

 For more background information, have a look at the links at the bottom of the linked site.

0 Kudos
Message 8 of 10
(1,386 Views)

I haven't yet been able to give this a shot, but I will soon.

Thanks for the information,

Greg

0 Kudos
Message 9 of 10
(1,349 Views)

I did purchase the TM 1000A model, and setting it up and getting both my Win 10 PC and Linux machine to use it was pretty easy. Thanks!

0 Kudos
Message 10 of 10
(1,332 Views)