Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Nov 8, 2007


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Getting/Setting the System Date/Time on CVS and PXI RT Targets

3 ratings | 3.67 out of 5
Print

Downloads

Filename: 3896.llb
Requirements: View

This example program capitalizes on RT Set Date and Time.vi to get/set system date and time on any RT target with an ETS real-time operating system. The user is given the choice to simply read back current system date and time, set the system date and time to be in accordance with external time servers, or manually set the date and time of the RT system.

This VI opens a connection to a DAYTIME server. 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 a DAYTIME server, the VI gets and sets the system time. For more information on these time servers, follow the included link to the NIST website.

DAYTIME is simpler version of the well known NTP (Network Time Protocol) standard.

Requirements


Filename: 3896.llb

Software Requirements


Application Software: LabVIEW Full Development System 7.1
Toolkits and Add-Ons: LabVIEW Real-Time Module 7.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Vision (IMAQ), PXI/CompactPCI
Hardware Model: PXI-8145 RT, PXI-8146 RT, PXI-8156B RT, PXI-8186 RT, PXI-8175 RT, PXI-8176 RT, PXI-8184RT, PXI-8170 RT

 
3 ratings | 3.67 out of 5
Print

Reader Comments | Submit a comment »

DAYTIME, not NTP
This example uses the DAYTIME protocol instead of NTP to retrieve the date and time from the 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/).