03-06-2013 08:12 AM
Hey guys,
I am trying to programmically set my sbrio clock to the time on the PC host I connect to, the clock on the SBRIO should update to teh same as the PC everytime it gets connected. I want to get the time stamp to be in the local time of my PC (not nessesarily to a server).
I have found a few things online but they have been for syncronysing the runing of a loop or for syncing the time to a STNP time server. Is there a way I can make my local host PC act as a SNTP server for example? How can I do that? The clock sync should beon the ms scale.
Thanks in advance for yout responces.
Kirk
03-07-2013 09:57 AM
Hi Kirk,
I have read you forum post.
Therefore I did some research in our database. I have found the links bellow.
Synchronizing Real-Time Target Time with Host Computer Time
http://digital.ni.com/public.nsf/allkb/DC20E31E0067D76486257544005A1376
How Do I Set the Date and Time on My Real-Time Controller?
http://digital.ni.com/public.nsf/allkb/B9D619C68F7D5F5D86257251007E2491?OpenDocument
Is this helpful information?
Regards,
Corné Westeneng
Applications Engineer
NI-Netherlands
03-12-2013 08:36 AM
I was hoping there would be a more accurate way to do it. I don't really like using gloabal variables so I think I will just think of a different way of acheiving my goal or may just implement it using TCP connection already in my project.
Thanks for your reply.
Kirk