Jump to content

RT app needs system time from Windows PC


JeremyMarquis

Recommended Posts

I have an RT PXI controller, and I am wondering the best way to get a networked PC's system time so I can periodically sync to it (in a controlled way, such as when RT system is idle).

 

Obstacles:

The PC is not running any LabVIEW code, so no PC publishing time to network shared variable stuff

The code on the PC is legacy C# code that I cannot modify to include timestamp messaging between systems

The PC and attached RT PXI are network isolated, so no using a domain controller time service

 

 

My only solution to get the time from this generic windows PC (assume WinXP or newer) is to install an NTP time service on it that I can query via UDP from the RT application.  I have done this before, but it just feels unsatisfactory.

 

Anyone else solve this problem before?

Link to comment

See the reply from NI on my idea to implement native support for this...it turns out it is supported, just not very obviously:

 

http://forums.ni.com/t5/LabVIEW-Real-Time-Idea-Exchange/Support-industry-standard-time-server-NTP-e-g/idi-p/2340392

 

Here's an implementation using the System Config API:

 

https://decibel.ni.com/content/docs/DOC-26987

Link to comment

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.