Set Date and Time on PC, PXI, and PXI-RT using DAYTIME protocol
Downloads
Filename: rt_nist_date_time.llb
Requirements: View
This example illustrates how query a server using the DAYTIME protocol and set the date and time of the LabVIEW Real-Time target. The example uses two NIST time servers, time-a.nist.gov and time-b.nist.gov. See the link below for more information on these time servers. You can get a list of other public time servers from the Internet.
After establishing a connection to the DAYTIME server, the VI retrieves the current time from the server and sets the time on the RT controller. FieldPoint targets are capable of automatically updating their date and time from a Windows PC running the Logos Time Server. The advantage of using a DAYTIME server is that you do not need a Windows PC running the Logos Time Server to get the current date and time. This example can be used on any LabVIEW Real-Time target.
DAYTIME is simpler version of the well known NTP (Network Time Protocol) standard.
| Related Links: |
| NIST Internet Time Servers |
Requirements
Filename: rt_nist_date_time.llb
Software Requirements
Application Software: LabVIEW Full Development System 7.1.1
Toolkits and Add-Ons: LabVIEW Real-Time Module 7.1
Language(s): LabVIEW
Reader Comments | Submit a comment »
This example uses DAYTIME protocol, not NTP
This example uses the DAYTIME
protocol instead of NTP to retrieve the
time from the NIST server.
- Christian Loew, National Instruments. christian.loew@ni.com - Aug 10, 2007
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
